Last active
December 17, 2015 22:59
-
-
Save jcreamer898/5685754 to your computer and use it in GitHub Desktop.
A way to adjust the module context in require.js
This file contains hidden or 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
| require(['jquery', 'underscore'], function($, _) { | |
| require.s.contexts._.execCb = function(name, callback, args) { | |
| return callback.apply({ | |
| $: $, | |
| _: _ | |
| }, args); | |
| }; | |
| // init app here | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LOL @ifandelse I somehow JUST saw this comment. Epic gif is epic.