diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-09-18 17:39:44 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-09-18 18:04:31 -0400 |
commit | 15b5dbfe2386d67b8c1df3305812b35abc04458c (patch) | |
tree | e762b8301177061e96654586353cdab821b4280e /src/event.js | |
parent | e8e3e90a8620a945d2d4f6012a604d96db2bd317 (diff) | |
download | jquery-15b5dbfe2386d67b8c1df3305812b35abc04458c.tar.gz jquery-15b5dbfe2386d67b8c1df3305812b35abc04458c.zip |
Fix #12229, size/consistency improvements. Close gh-887.
Diffstat (limited to 'src/event.js')
-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 c9231dabb..c92dd4206 100644 --- a/src/event.js +++ b/src/event.js @@ -365,7 +365,7 @@ jQuery.event = { var i, j, cur, ret, selMatch, matched, matches, handleObj, sel, related, handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []), delegateCount = handlers.delegateCount, - args = [].slice.call( arguments ), + args = core_slice.call( arguments ), run_all = !event.exclusive && !event.namespace, special = jQuery.event.special[ event.type ] || {}, handlerQueue = []; @@ -966,7 +966,7 @@ jQuery.fn.extend({ }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) - return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); + return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); }, trigger: function( type, data ) { |