Repository: tapestry-5 Updated Branches: refs/heads/master 98e163818 -> 305ce198c
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/305ce198 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/305ce198 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/305ce198 Branch: refs/heads/master Commit: 305ce198c72437a8a9731d18e32a88bae81cc69a Parents: 98e1638 Author: Jochen Kemnade <[email protected]> Authored: Thu Apr 6 11:29:01 2017 +0200 Committer: Jochen Kemnade <[email protected]> Committed: Thu Apr 6 11:29:01 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/305ce198/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
