aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-09 21:28:33 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-09 21:28:33 -0800
commitf25eedf32a7555f71a246c6f491292ce876c4133 (patch)
tree93e5020b9a640b2ae69b7c3b3a6c237fe75aa165 /src/event.js
parent1a4d1904ae8631f94b7400d99af24d3fe2f33ecd (diff)
downloadjquery-f25eedf32a7555f71a246c6f491292ce876c4133.tar.gz
jquery-f25eedf32a7555f71a246c6f491292ce876c4133.zip
Restrict the attr quick setters to only methods that specifically ask for the functionality. Fixes #5612.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index f7668965f..a32f0339c 100644
--- a/src/event.js
+++ b/src/event.js
@@ -885,6 +885,10 @@ jQuery.each( ("blur focus load resize scroll unload click dblclick " +
jQuery.fn[ name ] = function( fn ) {
return fn ? this.bind( name, fn ) : this.trigger( name );
};
+
+ if ( jQuery.fnAttr ) {
+ jQuery.fnAttr[ name ] = true;
+ }
});
// Prevent memory leaks in IE