This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ################################# CLASS | |
| function Class( fn ){ | |
| var object = new fn(), nc = fn, superObject; | |
| if(object.hasOwnProperty('initialize')){ | |
| fn = object.initialize; | |
| } | |
| if(object.hasOwnProperty('Extends')){ | |
| var SuperConstructor = object.Extends; | |
| delete object.Extends(); | |
| fn.prototype = new SuperConstructor(); |