Do not assign enumerable schema to object #256
This commit is contained in:
parent
43f395d653
commit
3364102771
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue