You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/07/10 15:30:21 UTC
git commit: WICKET-4650 Do not publish '/dom/node/added' is there is
no added node
Updated Branches:
refs/heads/wicket-1.5.x 44e35e023 -> 95c7181fc
WICKET-4650 Do not publish '/dom/node/added' is there is no added node
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/95c7181f
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/95c7181f
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/95c7181f
Branch: refs/heads/wicket-1.5.x
Commit: 95c7181fcca6d6fe394c928120c5b10cb163790e
Parents: 44e35e0
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Jul 10 16:30:04 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Jul 10 16:30:04 2012 +0300
----------------------------------------------------------------------
.../java/org/apache/wicket/ajax/wicket-ajax.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/95c7181f/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js b/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
index caf3c3b..ca26c7e 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
@@ -387,7 +387,9 @@ Wicket.replaceOuterHtml = function(element, text) {
}
var newElement = Wicket.$(element.id);
- Wicket.Event.publish('/dom/node/added', newElement);
+ if (newElement) {
+ Wicket.Event.publish('/dom/node/added', newElement);
+ }
}
/**