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:27:27 UTC
[2/3] git commit: WICKET-4650 Do not publish '/dom/node/added' is
there is no added node
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/88fff3f8
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/88fff3f8
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/88fff3f8
Branch: refs/heads/master
Commit: 88fff3f8444dbe046b628bb0a4820ba4bff3bdcc
Parents: c67ac68
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Jul 10 16:22:13 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Jul 10 16:22:13 2012 +0300
----------------------------------------------------------------------
.../wicket/ajax/res/js/wicket-ajax-jquery.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/88fff3f8/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index d980754..56e950e 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -1431,7 +1431,9 @@
}
var newElement = Wicket.$(element.id);
- Wicket.Event.publish('/dom/node/added', newElement);
+ if (newElement) {
+ Wicket.Event.publish('/dom/node/added', newElement);
+ }
},
// Method for serializing DOM nodes to string