Fix mixin

This commit is contained in:
Raymond Feng 2013-05-29 07:17:07 -07:00
parent 771bf70ec5
commit 6255da2ae0
1 changed files with 2 additions and 7 deletions

View File

@ -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);
}
/**