From 942f8f7f75a55a36e6b9745030d3b3c983518aa8 Mon Sep 17 00:00:00 2001 From: jeresig Date: Wed, 27 Jan 2010 10:06:50 -0500 Subject: [PATCH] No reason to limit the initial change data store to just radio elements. Fixes #5851. --- src/event.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/event.js b/src/event.js index 58f7a3190..efefe578e 100644 --- a/src/event.js +++ b/src/event.js @@ -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 ) {