I'm having a problem getting MWL to work - in some files in my project, it works just fine, but in others it doesn't. This happens even if the code is identical - I can copy and paste the entire contents of one file into another, and it will work in the first but not the second. When I check the type of MWL ( using alert( typeof mwl ); or alert( typeof window.mwl); ), it comes up as undefined in some files and as object in others - again, even if the code in the 2 files is identical.
I can't find any project settings or anything else that would cause this, and it only seems to be happening in certain files - in others, MWL is defined and the functions work just fine.
Any help with this would be greatly appreciated.