You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/03/15 00:38:46 UTC
git commit: TAP5-2054: dom.coffee code doesn't work if minified
Updated Branches:
refs/heads/master 53c3611ed -> 653a41d6d
TAP5-2054: dom.coffee code doesn't work if minified
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/653a41d6
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/653a41d6
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/653a41d6
Branch: refs/heads/master
Commit: 653a41d6dc2f3831957a15b127477d22021a8af3
Parents: 53c3611
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Thu Mar 14 16:38:40 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Thu Mar 14 16:38:40 2013 -0700
----------------------------------------------------------------------
.../org/apache/tapestry5/t5-core-dom-jquery.coffee | 2 +-
.../apache/tapestry5/t5-core-dom-prototype.coffee | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/653a41d6/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee b/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
index 475676d..f85f027 100644
--- a/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
+++ b/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
@@ -43,7 +43,7 @@ define ["_", "./utils", "jquery"], (_, utils, $) ->
if _.isElement content
return content
- if content.constructor?.name is "ElementWrapper"
+ if content instanceof ElementWrapper
return content.$
throw new Error "Provided value <#{content}> is not valid as DOM element content."
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/653a41d6/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-prototype.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-prototype.coffee b/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-prototype.coffee
index bad644a..d55e276 100644
--- a/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-prototype.coffee
+++ b/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-prototype.coffee
@@ -60,7 +60,7 @@ define ["_", "./utils", "prototype"], (_, utils) ->
if _.isElement content
return content
- if content.constructor?.name is "ElementWrapper"
+ if content instanceof ElementWrapper
return content.element
throw new Error "Provided value <#{content}> is not valid as DOM element content."