Skip to content

Commit e847574

Browse files
committed
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 02a9d9f
1 parent 8bf81d7 commit e847574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/css/var/swap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
define(function() {
22

33
// A method for quickly swapping in/out CSS properties to get correct calculations.
4-
return function swap( elem, options, callback, args ) {
4+
return function( elem, options, callback, args ) {
55
var ret, name,
66
old = {};
77

0 commit comments

Comments
 (0)