Applies exception in Style Guidelines regarding objects and functions when they are the last argument of a function call.
This commit is contained in:
parent
7a1c6beab0
commit
2594a935de
|
@ -248,7 +248,7 @@ jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".sp
|
||||||
jQuery.fn[ o ] = function( f ){
|
jQuery.fn[ o ] = function( f ){
|
||||||
return this.bind( o, f );
|
return this.bind( o, f );
|
||||||
};
|
};
|
||||||
} );
|
});
|
||||||
|
|
||||||
jQuery.each( [ "get", "post" ], function( i, method ) {
|
jQuery.each( [ "get", "post" ], function( i, method ) {
|
||||||
jQuery[ method ] = function( url, data, callback, type ) {
|
jQuery[ method ] = function( url, data, callback, type ) {
|
||||||
|
@ -267,7 +267,7 @@ jQuery.each( [ "get", "post" ], function( i, method ) {
|
||||||
dataType: type
|
dataType: type
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
} );
|
});
|
||||||
|
|
||||||
jQuery.extend({
|
jQuery.extend({
|
||||||
|
|
||||||
|
@ -757,7 +757,7 @@ jQuery.extend({
|
||||||
// Serialize the form elements
|
// Serialize the form elements
|
||||||
jQuery.each( a, function() {
|
jQuery.each( a, function() {
|
||||||
add( this.name, this.value );
|
add( this.name, this.value );
|
||||||
} );
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// If traditional, encode the "old" way (the way 1.3.2 or older
|
// If traditional, encode the "old" way (the way 1.3.2 or older
|
||||||
|
|
|
@ -76,6 +76,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
|
||||||
// Delegate to script
|
// Delegate to script
|
||||||
return "script";
|
return "script";
|
||||||
}
|
}
|
||||||
} );
|
});
|
||||||
|
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
|
|
@ -25,7 +25,7 @@ jQuery.ajaxPrefilter( "script", function( s ) {
|
||||||
s.type = "GET";
|
s.type = "GET";
|
||||||
s.global = false;
|
s.global = false;
|
||||||
}
|
}
|
||||||
} );
|
});
|
||||||
|
|
||||||
// Bind script tag hack transport
|
// Bind script tag hack transport
|
||||||
jQuery.ajaxTransport( "script", function(s) {
|
jQuery.ajaxTransport( "script", function(s) {
|
||||||
|
@ -84,6 +84,6 @@ jQuery.ajaxTransport( "script", function(s) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} );
|
});
|
||||||
|
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
|
|
@ -128,7 +128,7 @@ jQuery.extend({
|
||||||
} else {
|
} else {
|
||||||
deferred[ handler ]( newDefer[ action ] );
|
deferred[ handler ]( newDefer[ action ] );
|
||||||
}
|
}
|
||||||
} );
|
});
|
||||||
}).promise();
|
}).promise();
|
||||||
},
|
},
|
||||||
// Get a promise for this deferred
|
// Get a promise for this deferred
|
||||||
|
@ -146,7 +146,7 @@ jQuery.extend({
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
} );
|
});
|
||||||
// Make sure only one callback list will be used
|
// Make sure only one callback list will be used
|
||||||
deferred.done( failDeferred.cancel ).fail( deferred.cancel );
|
deferred.done( failDeferred.cancel ).fail( deferred.cancel );
|
||||||
// Unexpose cancel
|
// Unexpose cancel
|
||||||
|
|
2
src/effects.js
vendored
2
src/effects.js
vendored
|
@ -428,7 +428,7 @@ jQuery.fx.prototype = {
|
||||||
|
|
||||||
jQuery.each( [ "", "X", "Y" ], function (index, value) {
|
jQuery.each( [ "", "X", "Y" ], function (index, value) {
|
||||||
elem.style[ "overflow" + value ] = options.overflow[index];
|
elem.style[ "overflow" + value ] = options.overflow[index];
|
||||||
} );
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the element if the "hide" operation was done
|
// Hide the element if the "hide" operation was done
|
||||||
|
|
|
@ -105,7 +105,7 @@ jQuery.support = (function() {
|
||||||
// bound event handlers (IE does this)
|
// bound event handlers (IE does this)
|
||||||
support.noCloneEvent = false;
|
support.noCloneEvent = false;
|
||||||
div.detachEvent( "onclick", click );
|
div.detachEvent( "onclick", click );
|
||||||
} );
|
});
|
||||||
div.cloneNode( true ).fireEvent( "onclick" );
|
div.cloneNode( true ).fireEvent( "onclick" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue