From e847574fc755b5339f3de41bcebd5b2a3e140cfe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Mon, 1 Jun 2015 19:55:18 +0200 Subject: [PATCH] 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 --- src/css/var/swap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {}; -- 2.39.5