Skip to content

Instantly share code, notes, and snippets.

@micahwave
Created August 25, 2014 16:55
Show Gist options
  • Save micahwave/2de113c46018cb747c27 to your computer and use it in GitHub Desktop.
Save micahwave/2de113c46018cb747c27 to your computer and use it in GitHub Desktop.
Require define
function (b,c,d){var i,
f;"string"!==typeof b&&(d=c,c=b,b=null);I(c)||(d=c,c=[]);!c.length&&H(d)&&d.length&&(d.toString().replace(ia,"").replace(ja,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c));if(O){if(!(i=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),i=P;i&&(b||(b=i.getAttribute("data-requiremodule")),f=B[i.getAttribute("data-requirecontext")])}(f?f.defQueue:R).push([b,c,d])}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment