Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // makeClass - By John Resig (MIT Licensed)
- function makeClass(){
- return function(args){
- if ( this instanceof arguments.callee ) {
- if ( typeof this.init == "function" )
- this.init.apply( this, args.callee ? args : arguments );
- } else
- return new arguments.callee( arguments );
- };
- }
Add Comment
Please, Sign In to add comment