Do not assign enumerable schema to object #256

This commit is contained in:
Anatoliy Chakkaev 2013-04-07 00:21:42 +04:00
parent 43f395d653
commit 3364102771
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ Schema.prototype.define = function defineClass(className, properties, settings)
return new ModelConstructor(data);
}
AbstractClass.call(this, data);
this.schema = schema || this.constructor.schema;
hiddenProperty(this, 'schema', schema || this.constructor.schema);
};
hiddenProperty(NewClass, 'schema', schema);