Commit e847574f authored by Michał Gołębiowski's avatar Michał Gołębiowski

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 02a9d9f9
parent 8bf81d76
define(function() { define(function() {
// A method for quickly swapping in/out CSS properties to get correct calculations. // 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, var ret, name,
old = {}; old = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment