Fix extend by using util.inherits

This commit is contained in:
Ritchie Martori 2013-07-15 10:44:34 -07:00
parent 12c28ce363
commit 2de55df939
1 changed files with 3 additions and 3 deletions

View File

@ -135,9 +135,9 @@ ModelBuilder.prototype.define = function defineClass(className, properties, sett
for (var i in ModelBaseClass) { for (var i in ModelBaseClass) {
ModelClass[i] = ModelBaseClass[i]; ModelClass[i] = ModelBaseClass[i];
} }
for (var j in ModelBaseClass.prototype) {
ModelClass.prototype[j] = ModelBaseClass.prototype[j]; util.inherits(ModelClass, ModelBaseClass);
}
ModelClass.getter = {}; ModelClass.getter = {};
ModelClass.setter = {}; ModelClass.setter = {};
standartize(properties, settings); standartize(properties, settings);