Created
August 21, 2012 11:24
-
-
Save distributedlife/3414681 to your computer and use it in GitHub Desktop.
what to do when you are unsure of what mocked requirejs AMD modules you need to unbind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind_all_the_things = (requirejs) -> | |
defined = requirejs.s.contexts._.defined | |
requirejs.undef(module) for module in Object.keys(defined) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Boss Key. ^[. Taking your ball and going home.