lukasolson/backbone-super — pull request #16 by spoptchev (2014-01-16 09:49:14+00:00)
Title: Minification issue in rails project caused by invalid function call

When `/xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/` gets minified in a rails project (even if we take the already minified version) it will strip the `xyz` from the anonymous function. This causes a javascript error.

The fix is pretty simple. `/xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/` always evaluates to `/\b_super\b/`. So the variable `fnTest` is assigned to `/\b_super\b/`.