mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 00:08:17 -05:00
CSS: Don't name the anonymous swap function
IE8 doesn't like named anonymous expressions. Not naming the function
expression reduces the gzipped size by 5 bytes.
In ECMAScript 2015 the function will get the name inferred from the
variable name (here: swap) anyway.
Refs 02a9d9f94b
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
define(function() {
|
||||
|
||||
// A method for quickly swapping in/out CSS properties to get correct calculations.
|
||||
return function swap( elem, options, callback, args ) {
|
||||
return function( elem, options, callback, args ) {
|
||||
var ret, name,
|
||||
old = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user