Skip to content

Instantly share code, notes, and snippets.

@micahwave
Created August 25, 2014 16:54
Show Gist options
  • Save micahwave/44de9d63c0af67939c8c to your computer and use it in GitHub Desktop.
Save micahwave/44de9d63c0af67939c8c to your computer and use it in GitHub Desktop.
Twitter define
function P(){var e=b(arguments),t=[],n,r;return typeof e[0]=="string"&&(n=e.shift()),w(e[0])&&(t=e.shift()),r=e.shift(),O(n,function(e){function s(){var i=D(b(t),n),s;typeof r=="function"?s=r.apply(n,i):s=r,typeof s=="undefined"&&(s=n.exports),e(s)}var n=this,i=[];for(var o=0,u=t.length;o<u;o++){var a=t[o];E(["require","exports"],a)==-1&&i.push(_(a,n))}i.length>0?H.apply(this,i.concat(s)):s()})}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment