Fix mixin
This commit is contained in:
parent
771bf70ec5
commit
6255da2ae0
|
@ -227,15 +227,10 @@ DataSource.prototype.define = function defineClass(className, properties, settin
|
|||
*/
|
||||
|
||||
DataSource.prototype.mixin = function (ModelCtor) {
|
||||
var DataAccessObject = this.DataAccessObject;
|
||||
|
||||
// inherit DataAccessObject methods
|
||||
for (var m in DataAccessObject) {
|
||||
ModelCtor[m] = DataAccessObject[m];
|
||||
}
|
||||
for (var n in DataAccessObject.prototype) {
|
||||
ModelCtor.prototype[n] = DataAccessObject.prototype[n];
|
||||
}
|
||||
jutil.mixin(ModelCtor, this.DataAccessObject);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue