aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-06-01 19:55:18 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-06-01 19:59:23 +0200
commit0019a463bdcb81dc6ba3434505a45774ca27f363 (patch)
treee7e2ac33f2541db4cbd8b49bbefa177969c0d9fe
parent8e92e1ea3c533f3be82c99bbafaaf74b5bdedecc (diff)
downloadjquery-0019a463bdcb81dc6ba3434505a45774ca27f363.tar.gz
jquery-0019a463bdcb81dc6ba3434505a45774ca27f363.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. (cherry-picked from e847574fc755b5339f3de41bcebd5b2a3e140cfe) Refs 02a9d9f94b623ea8664b7b39fd57feb7de6c6a14
-rw-r--r--src/css/var/swap.js2
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 = {};