ecomfe / oo

Base library for OO style programming
MIT License
5 stars 5 forks source link

是否增加 Class.prototype.extend方法 #6

Closed Exodia closed 10 years ago

Exodia commented 10 years ago

即给类对象增加快捷继承出一个新类的方法:

var Super = Class(superExports);
var Sub = Super.extend(SubExports);

等价:

var Super = Class(superExports);

var Sub = Class(Super, SubExports);