var dataType = type.dataType;
var global = typeof type.global == "boolean" ? type.global : true;
var timeout = typeof type.timeout == "number" ? type.timeout : jQuery.timeout;
- var ifModified = type.ifModified || false;
+ ifModified = type.ifModified || false;
data = type.data;
url = type.url;
type = type.type;
// Add the event
jQuery.event.add( this, o, function(e){
// If this function has already been executed, stop
- if ( count++ ) return;
+ if ( count++ ) return true;
// And execute the bound function
return f.apply(this, [e]);
* @name jQuery
* @cat Core
*/
-jQuery = function(a,c) {
+function jQuery(a,c) {
// Shortcut for document ready (because $(document).each() is silly)
if ( a && typeof a == "function" && jQuery.fn.ready )
// Find the matching elements and save them for later
jQuery.find( a, c ) );
- // See if an extra function was provided
+ // See if an extra function was provided
var fn = arguments[ arguments.length - 1 ];
// If so, execute it in context
if ( fn && typeof fn == "function" )
this.each(fn);
-};
+
+ return this;
+}
// Map over the $ in case of overwrite
if ( typeof $ != "undefined" )
for ( var i = 0; i < t.length; i++ )
if ( jQuery.filter(t[i],[a]).r.length )
return a;
+ return false;
}) ||
t.constructor == Boolean &&
},
handle: function(event) {
- if ( typeof jQuery == "undefined" ) return;
+ if ( typeof jQuery == "undefined" ) return false;
event = event || jQuery.event.fix( window.event );
// If no correct event was found, fail
- if ( !event ) return;
+ if ( !event ) return false;
var returnValue = true;