Open SQReder opened 12 years ago
another circumstance: a minified filter function like this
if(some condtions)return!1;return!0
will get a wrong 'compiledFilter', and no items will be displayed
Right, the inliner parsing logic is rather simplistic right now, which is why it's optional and off by default. I'll tweak it a bit, but it probably still won't handle all the cases.
I have come across another case where the compiler is failing with minified code: http://stackoverflow.com/q/15031876/141172
Simple filter function
Minified
and after replacing return statements at compileFilter() and compileFilterWithCaching() functions
Voila! We've get invalid js code.
Fast fix for me - remove [;}] from regexp at