suns.js
Object extending utilities for node and the browser (amd support)
Build
dependence) node.js
$ npm install .
$ make
Simple Example
//// base class//var { thisname = 'this is base class';};Baseprototype = { return 'this is func1'; } { return 'this is func2'; } { return 'this is func3'; }; BasestaticProp = 'BaseStaticProp'; //// make child class//var Child = suns;var c = ;c; // 'this is func1'c; // 'this is childfunc1'c; // 'this is overriden func2'Child__supersuper__func2; // 'this is func2' //// child class extends two prototypes//var GrandChild = suns; var gc = ;gc; // 'this is func1'gc; // 'this is childfunc1'gc; // 'this is overoverriden func2'GrandChild__super__func2; // 'this is overriden func2'GrandChild__supersuper__func2; // 'this is func2'
AUTHORS
Kei FUNAGAYAMA
Kazuma MISHIMAGI
CyberAgent Publicity
Changelog
@see https://github.com/CyberAgent/suns.js/blob/master/Changelog
Copyright
CyberAgent, Inc. All rights reserved.
License
MIT @see https://github.com/CyberAgent/suns.js/blob/master/LICENSE