Skip to content

Commit

Permalink
No reason to limit the initial change data store to just radio elemen…
Browse files Browse the repository at this point in the history
…ts. Fixes #5851.
  • Loading branch information
jeresig committed Jan 27, 2010
1 parent 7a3afc3 commit 942f8f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/event.js
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 942f8f7

Please sign in to comment.