tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thiag...@apache.org
Subject git commit: Changes Element.attribute() so it returns null in both jQuery and Prototype versions.
Date Fri, 01 Nov 2013 20:16:35 GMT
Updated Branches:
  refs/heads/master a073dc01c -> 05710cd2f


Changes Element.attribute() so it returns null in both jQuery and
Prototype versions.

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

Branch: refs/heads/master
Commit: 05710cd2fe417b066649c111110f8d83431dd124
Parents: a073dc0
Author: Thiago H. de Paula Figueiredo <thiagohp@apache.org>
Authored: Fri Nov 1 18:16:15 2013 -0200
Committer: Thiago H. de Paula Figueiredo <thiagohp@apache.org>
Committed: Fri Nov 1 18:16:15 2013 -0200

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


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/05710cd2/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 7aa3126..a1cc726 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
@@ -295,6 +295,8 @@ define ["underscore", "./utils", "./events", "jquery"],
       current = @$.attr name
       if arguments.length > 1
         @$.attr name, value
+      if _.isUndefined current
+        current = null
 #elseif prototype
       current = @element.readAttribute name
       if arguments.length > 1


Mime
View raw message