git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Restrict the attr quick setters to only methods that specifically ask for the functio...
[jquery.git]
/
src
/
event.js
diff --git
a/src/event.js
b/src/event.js
index
f766896
..
a32f033
100644
(file)
--- 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