No reason to limit the initial change data store to just radio elements. Fixes #5851.

This commit is contained in:
jeresig 2010-01-27 10:06:50 -05:00
parent 7a3afc3194
commit 942f8f7f75

View 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 ) {