diff options
author | Oleg <markelog@gmail.com> | 2013-01-25 06:26:16 +0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-31 10:01:18 -0500 |
commit | e392e5579b9f8f1e20c0befe0577e5141fc45468 (patch) | |
tree | 4bdf0d520b75867f449f6013488f05dc9c31b91d /src/event.js | |
parent | dc931af877d59806dbbb826036ab9b23bdbabd32 (diff) | |
download | jquery-e392e5579b9f8f1e20c0befe0577e5141fc45468.tar.gz jquery-e392e5579b9f8f1e20c0befe0577e5141fc45468.zip |
Change variables initialization sequence for some declarations
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/event.js b/src/event.js index 7b8b77709..c10c684df 100644 --- a/src/event.js +++ b/src/event.js @@ -22,9 +22,9 @@ jQuery.event = { add: function( elem, types, handler, data, selector ) { - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, + var handleObjIn, tmp, eventHandle, + t, handleObj, special, + events, handlers, type, namespaces, origType, elemData = jQuery._data( elem ); // Don't attach events to noData or text/comment nodes (but allow plain objects) @@ -133,8 +133,8 @@ jQuery.event = { // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { - var j, origCount, tmp, - events, t, handleObj, + var events, handleObj, tmp, + j, t, origCount, special, handlers, type, namespaces, origType, elemData = jQuery.hasData( elem ) && jQuery._data( elem ); @@ -206,7 +206,7 @@ jQuery.event = { trigger: function( event, data, elem, onlyHandlers ) { - var i, cur, tmp, bubbleType, ontype, handle, special, + var i, handle, ontype, bubbleType, tmp, special, cur, eventPath = [ elem || document ], type = event.type || event, namespaces = event.namespace ? event.namespace.split(".") : []; @@ -343,7 +343,7 @@ jQuery.event = { // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( event ); - var i, j, ret, matched, handleObj, + var ret, j, handleObj, matched, i, handlerQueue = [], args = core_slice.call( arguments ), handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], @@ -876,7 +876,7 @@ if ( !jQuery.support.focusinBubbles ) { jQuery.fn.extend({ on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var origFn, type; + var type, origFn; // Types can be a map of types/handlers if ( typeof types === "object" ) { |