Updated Branches:
  refs/heads/master 68a6f64b4 -> a7f091974

WICKET-4822 Wicket.Event.add requires Wicket.$, but wicket-ajax-jquery is not 
listed as a dependency

Since the 'element' is just a String there is no need of the smarter 
Wicket.DOM.get and document.getElementById() will do the job.
This removes a wrong dependency from wicket-event.js to wicket-ajax.js


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/a7f09197
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/a7f09197
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/a7f09197

Branch: refs/heads/master
Commit: a7f0919743ce529c983fe140a290224ee14038a6
Parents: 68a6f64
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Thu Oct 18 08:01:12 2012 +0200
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Thu Oct 18 08:01:12 2012 +0200

----------------------------------------------------------------------
 .../wicket/ajax/res/js/wicket-event-jquery.js      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/a7f09197/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
index 576baa4..faa8c1d 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
+++ 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
@@ -140,7 +140,7 @@
                                        
                                        var el = element;
                                        if (typeof(element) === 'string') {
-                                               el = Wicket.$(element); // 
Wicket.$() is wicket-ajax.js. Is this too bad ?
+                                               el = 
document.getElementById(element);
                                        }
                                        
                                        if (!el && Wicket.Log) {

Reply via email to