Skip to content

Instantly share code, notes, and snippets.

@distributedlife
Created August 21, 2012 11:24
Show Gist options
  • Save distributedlife/3414681 to your computer and use it in GitHub Desktop.
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
unbind_all_the_things = (requirejs) ->
defined = requirejs.s.contexts._.defined
requirejs.undef(module) for module in Object.keys(defined)
@gardym
Copy link

gardym commented Aug 21, 2012

The Boss Key. ^[. Taking your ball and going home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment