Fix extend by using util.inherits
This commit is contained in:
parent
12c28ce363
commit
2de55df939
|
@ -135,9 +135,9 @@ ModelBuilder.prototype.define = function defineClass(className, properties, sett
|
|||
for (var i in ModelBaseClass) {
|
||||
ModelClass[i] = ModelBaseClass[i];
|
||||
}
|
||||
for (var j in ModelBaseClass.prototype) {
|
||||
ModelClass.prototype[j] = ModelBaseClass.prototype[j];
|
||||
}
|
||||
|
||||
util.inherits(ModelClass, ModelBaseClass);
|
||||
|
||||
ModelClass.getter = {};
|
||||
ModelClass.setter = {};
|
||||
standartize(properties, settings);
|
||||
|
|
Loading…
Reference in New Issue