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
The reason why I'm checking for template is because it's the last thing to be defined on underscore (this is 1.2.2 btw).
After taking a look at the shim code and poking it for a while, it looks like when it tries to get core['_define'], it's still not defined, so it might get overwritten later. I've tried a few setTimeouts but nothing seemed to solve the issue.
The text was updated successfully, but these errors were encountered:
This fork fixes the "early export" problem in underscore. I also submitted a pull request to the amdjs team to see what they think of it. If all goes well, I'll remove the shim altogether. :)
Well yes, it sort of makes sense. If we already have an AMD enabled fork of underscore, why not make it right instead of shimming odd behaviours? I'll give it a try when I can.
I am running the following test to check if the underscore shim solves the problems it should be solving:
The reason why I'm checking for template is because it's the last thing to be defined on underscore (this is 1.2.2 btw).
After taking a look at the shim code and poking it for a while, it looks like when it tries to get core['_define'], it's still not defined, so it might get overwritten later. I've tried a few setTimeouts but nothing seemed to solve the issue.
The text was updated successfully, but these errors were encountered: