case minify bug?

Oct 12, 2012 at 11:28 AM

In version 4.68 and 4.69 it looks like the minification of case statements is not working anymore. Code like:

var keyCode = $.ui.keyCode;   

switch (e.keyCode) {         

case keyCode.PAGE_UP:  ...

}

its minified to something like:   

var a = $.ui.keyCode;   

switch (e.keyCode) {         

case keyCode.PAGE_UP:  ...

}

so that the case statements keyCode.PAGE_UP in not updated to a.PAGE_UP. It works in 4.67.

Coordinator
Oct 12, 2012 at 4:23 PM

That is just beyond embarrassing. Neglected to resolve into the switch-case value nodes. Fixed in 4.70; thanks for reporting.