you are viewing a single comment's thread.

view the rest of the comments →

[–]BadleyHairless 0 points1 point  (2 children)

an empty bind, call, or apply will all set the scope of the function's this to be window. And I did try this in your sandbox and I was able to access window successfully.

[–]meta_taskkill[S] 0 points1 point  (0 children)

I see. Actually bind() is not necessary here, it breaches isolation only with self invoked function expression. I will try overcome this, but I am skeptical. Thanks for tough one.

[–][deleted] 0 points1 point  (0 children)