padolsey / operative

:dog2: Seamlessly create Web Workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimized Operative does not work with Firefox

pwagener opened this issue · comments

We are currently using an older JS minimization tool called JAWR. When minimizing Operative, it makes Firefox very angry with this:

...
        var loadedMethodName = '__operativeIFrameLoaded' + ++_loadedMethodNameI;
...

Firefox appears to treat that as a somewhat unknown operator, the triple-plus. This fixes it, obviously:

        var loadedMethodName = '__operativeIFrameLoaded' + (++_loadedMethodNameI);

Let me know if you'd like a pull request.

Sorry for this ridiculously late reply -- this issue must've slipped by my radar. I know it's probably too late but I'll get this fixed.

This is now fixed in 0.4.0-rc1 (via npm). Branch is 0-4-rc1.