Since we can pass an object to jQuery.Callbacks now, let's name it options to be consistent with the rest of the code.
How about we save 62 bytes? Also ensure that the arguments array given to fireWith is copied internally.
Regression: makes sure that all instances of a callback are removed. Unit test added.
Use real declaration since that helps gzip: thanks @gibson042.
Add resource by @mikesherov to gruntfile
Callbacks.add now accepts array-like objects (like Arguments). Now uses the slice method of the args array in fireWith rather than a quite slow jQuery.merge.
Trims down deferred.js. The gist of it is from the magnificent @gibson042, I just added some minor touches.
code compression
Update dimensions unit tests from changes in #11604
Opera announced they will start supporting the -webkit- prefix for a selected set of css properties. Let's put the inspection of -webkit- prefix properties as the last one in case this propagates to the style object and/or other browsers (the cssPrefixes array is inspected from right to left).
Simplifies the way the internal memory storage is handled.
Merge branch '1.8-deferred-optimize2' of git://github.com/gibson042/jquery into PR754
Gains 1 more byte min/gz and reminds that isResolved and isRejected are deprecated in the comments.
Gandalf the Grey says you shall not leak globals, even in the depths of Unit Tests. So fly, you fools!
jQuery.ajaxSetup() data is merged with params. Fixes #10524
jQuery.fn.load optimization
Makes test message more meaningful.
Adds unit test to show order of parameters in the load callback are off for errors since the rewrite (this test works in master).
Fixes the parameters given to load callback when the request errors.
-8 bytes