-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if(false) { var define; } overites the global define
in IE - nodeAdapter.js
#48
Comments
duzun
changed the title
if(false) { var define; } overites the blobal
if(false) { var define; } overites the global Nov 13, 2014
define
in IE - nodeAdapter.jsdefine
in IE - nodeAdapter.js
If you use ```javascript the code gets highlighted. |
Thanks for advice, szepeviktor :-) |
duzun
added a commit
to duzun/umd
that referenced
this issue
Nov 14, 2014
You can use one of these variations of UMD instead: https://gist.github.com/tejacques/202a8f2d198ddd54a409 Instead of defining a var define, it's passed in as a function argument instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had this issue before with IE.
Take a look at this code:
In IE (not sure until which version), if a variable is declared anywhere in the scope (inside any block, even a false if), it is available everywhere in that scope, even before its declaration.
Therefore this code overwrites define in environments like IE:
The text was updated successfully, but these errors were encountered: