git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f50224d
)
Added quick fix for event triggering, while passing in data.
author
John Resig
<jeresig@gmail.com>
Thu, 14 Sep 2006 22:26:42 +0000
(22:26 +0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 14 Sep 2006 22:26:42 +0000
(22:26 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
c1d64f2
..
f7ebb8d
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-2131,8
+2131,11
@@
jQuery.extend({
var c = this.events[event.type];
+ var args = [].slice.call( arguments, 1 );
+ args.unshiftT( event );
+
for ( var j in c ) {
- if ( c[j].apply( this, [event] ) === false ) {
+ if ( c[j].apply( this, args ) === false ) {
event.preventDefault();
event.stopPropagation();
returnValue = false;