Closed SimenB closed 7 years ago
It seems like it'd be simpler to make the polyfill function take an optional object instead?
I had that at first, but didn't want to overload the method. Can do that instead though if maintainers don't mind 🙂
Changed it to be just the polyfill
method.
Awesome, thanks for the contribution!
Published as v3.4.0.
This makes it easier to add the polyfills from outside of the context.
EDIT: This is probably too naive as the implementation does some checks against
root
which I'd want to be different in my case. Can split it into two files so that I can inject my ownglobal
I suppose. WDYT?