tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject tapestry-5 git commit: TAP5-2225: use a check that works if jQuery is not loaded
Date Thu, 06 Apr 2017 09:29:43 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/5.4.x 23ee56e11 -> 83ab06b40


TAP5-2225: use a check that works if jQuery is not loaded


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/83ab06b4
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/83ab06b4
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/83ab06b4

Branch: refs/heads/5.4.x
Commit: 83ab06b40c789806cb100f1481816d3f142ba41b
Parents: 23ee56e
Author: Jochen Kemnade <jochen.kemnade@eddyson.de>
Authored: Thu Apr 6 11:29:01 2017 +0200
Committer: Jochen Kemnade <jochen.kemnade@eddyson.de>
Committed: Thu Apr 6 11:29:37 2017 +0200

----------------------------------------------------------------------
 .../org/apache/tapestry5/t5-core-dom.coffee                      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/83ab06b4/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
index c014c89..7eda282 100644
--- a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
+++ b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
@@ -908,10 +908,10 @@ define ["underscore", "./utils", "./events", "jquery"],
 
     if element is null
       element = document.body
-    else if element instanceof jQuery
-      element = element[0];
     else if element instanceof ElementWrapper
       element = element.element;
+    else if element.jquery?
+      element = element[0];
 
 
     # Look for event data in itself first, then in the preceding siblings


Mime
View raw message