This file contains 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
/* | |
uber simple ad hoc prototype inheritance | |
advantages: | |
- simple to use, construct inheritance on the fly or apply multiple inheritace | |
- perserve super methods with custom namespace | |
- flat prototype layer improves performance (no deep tree searches) | |
- prototyped methods save memory (even though each instance has it's own prototype object, each method is only defined once) |
NewerOlder