Open duzun opened 10 years ago
If you use ```javascript the code gets highlighted.
Thanks for advice, szepeviktor
:-)
You can use one of these variations of UMD instead:
https://gist.github.com/tejacques/202a8f2d198ddd54a409 https://gist.github.com/wilsonpage/8598603
Instead of defining a var define, it's passed in as a function argument instead.
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: