]> 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:58:21 +0000 (19:58 +0200)
commite847574fc755b5339f3de41bcebd5b2a3e140cfe
tree81241f4f68cae873d82a9b9928738641212e231b
parent8bf81d76d1d6d607e0b6b4dd7f5582c3c83637f9
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