Permalink
Browse files

Do not assign enumerable schema to object #256

  • Loading branch information...
1602 committed Apr 6, 2013
1 parent 43f395d commit 3364102771129878c6b166ecf5fa6d68a594879d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/schema.js
View
@@ -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);

0 comments on commit 3364102

Please sign in to comment.