Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Created January 11, 2010 23:10
Show Gist options
  • Select an option

  • Save subtleGradient/274707 to your computer and use it in GitHub Desktop.

Select an option

Save subtleGradient/274707 to your computer and use it in GitHub Desktop.
require('MooTools').apply(global); // extends natives; extends global
require('Class').setup.apply(global); // extends global
function Class(){
this.Class = function(){};
//…
}
/*<b support=CommonJS>*/if (typeof exports != 'undefined') exports.setup = Class; else/*</b>*/ Class.apply(this || window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment