]> source.dussan.org Git - jquery.git/commit
CSS: Don't name the anonymous swap function
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 1 Jun 2015 17:55:18 +0000 (19:55 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 1 Jun 2015 17:59:23 +0000 (19:59 +0200)
commit0019a463bdcb81dc6ba3434505a45774ca27f363
treee7e2ac33f2541db4cbd8b49bbefa177969c0d9fe
parent8e92e1ea3c533f3be82c99bbafaaf74b5bdedecc
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
src/css/var/swap.js