You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like there are three functions exposed to the global namespace (from the minified version).
Is it possible to encapsulate the code and only expose the 'yall' function to the global namespace?
Thanks
The text was updated successfully, but these errors were encountered:
I certainly think so, and this was something I had been wondering about. I've gone ahead and implemented an encapsulation pattern to contain everything under window.yall. The only drawback is it requires instantiation of the object using the new keyboard, rather than a simple function call, but I think it's a reasonable tradeoff for keeping the window space a bit tidier.
It looks like there are three functions exposed to the global namespace (from the minified version).
Is it possible to encapsulate the code and only expose the 'yall' function to the global namespace?
Thanks
The text was updated successfully, but these errors were encountered: