Guest User

Untitled

a guest
Jan 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // makeClass - By John Resig (MIT Licensed)
  2. function makeClass(){
  3. return function(args){
  4. if ( this instanceof arguments.callee ) {
  5. if ( typeof this.init == "function" )
  6. this.init.apply( this, args.callee ? args : arguments );
  7. } else
  8. return new arguments.callee( arguments );
  9. };
  10. }
Add Comment
Please, Sign In to add comment