Named Paramters

Michał Wadas michalwadas at
Mon Jul 13 12:50:30 UTC 2015

In fact, it's impossible.
> And when the arguments are renamed during the minification, all
> the labels in function calls can be minified accordingly too.

You can't statically determine which function will be called. Minifier
CAN'T know in general case if your $(selector='wow') calls jQuery or
some other function at minify time.

So: you can't rely on optional parameters in any CDN-distributed file
(because your minifier doesn't know about it's pre-minification
identifiers), minifier have to avoid any parameters names clash at any

Possible solution: add gramar explicitly declare optional parameters
by keyword to avoid minifaction of their names names.

More information about the es-discuss mailing list