diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2009-04-30 21:50:15 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2009-04-30 21:50:15 +0000 |
commit | aef1989ba74ee568f8bab3ac0967fd849816da12 (patch) | |
tree | 9d645518068a95e4b281fd7ea06c1be1f263de2f /src | |
parent | 71efbdd3b26f3a283f8d4bfdcc7b6343142027b9 (diff) | |
download | jquery-aef1989ba74ee568f8bab3ac0967fd849816da12.tar.gz jquery-aef1989ba74ee568f8bab3ac0967fd849816da12.zip |
live event handlers now receive data from trigger, fixes #4532, thanks nbubna
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index 698730083..232fa2775 100644 --- a/src/event.js +++ b/src/event.js @@ -601,7 +601,7 @@ jQuery.fn.extend({ }); function liveHandler( event ) { - var stop = true, elems = []; + var stop = true, elems = [], args = arguments; jQuery.each( jQuery.data( this, "events" ).live || [], function( i, fn ) { if ( fn.live === event.type ) { @@ -619,7 +619,7 @@ function liveHandler( event ) { jQuery.each(elems, function() { event.currentTarget = this.elem; event.data = this.fn.data - if ( this.fn.call( this.elem, event, this.fn.selector ) === false ) { + if ( this.fn.apply( this.elem, args ) === false ) { return (stop = false); } }); |