You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2013/11/01 21:16:35 UTC

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

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 <th...@apache.org>
Authored: Fri Nov 1 18:16:15 2013 -0200
Committer: Thiago H. de Paula Figueiredo <th...@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