]> source.dussan.org Git - jquery.git/commitdiff
No reason to limit the initial change data store to just radio elements. Fixes #5851.
authorjeresig <jeresig@gmail.com>
Wed, 27 Jan 2010 15:06:50 +0000 (10:06 -0500)
committerjeresig <jeresig@gmail.com>
Wed, 27 Jan 2010 15:06:50 +0000 (10:06 -0500)
src/event.js

index 58f7a3190f959732709a88c353617a1a983a8225..efefe578e6a33178e5fd882db6d9e2d52c9322d4 100644 (file)
@@ -728,10 +728,7 @@ jQuery.event.special.change = {
                // information/focus[in] is not needed anymore
                beforeactivate: function( e ) {
                        var elem = e.target;
-
-                       if ( elem.nodeName.toLowerCase() === "input" && elem.type === "radio" ) {
-                               jQuery.data( elem, "_change_data", getVal(elem) );
-                       }
+                       jQuery.data( elem, "_change_data", getVal(elem) );
                }
        },
        setup: function( data, namespaces, fn ) {