diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-01 19:55:18 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-01 19:58:21 +0200 |
commit | e847574fc755b5339f3de41bcebd5b2a3e140cfe (patch) | |
tree | 81241f4f68cae873d82a9b9928738641212e231b /src/css/var | |
parent | 8bf81d76d1d6d607e0b6b4dd7f5582c3c83637f9 (diff) | |
download | jquery-e847574fc755b5339f3de41bcebd5b2a3e140cfe.tar.gz jquery-e847574fc755b5339f3de41bcebd5b2a3e140cfe.zip |
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 02a9d9f94b623ea8664b7b39fd57feb7de6c6a14
Diffstat (limited to 'src/css/var')
-rw-r--r-- | src/css/var/swap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/var/swap.js b/src/css/var/swap.js index 61351f14b..dbf639729 100644 --- a/src/css/var/swap.js +++ b/src/css/var/swap.js @@ -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 = {}; |