Commit c9f69986 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Fix RestQueryCache for dstore 1.0 compatibility

parent 4cc5737b
......@@ -49,7 +49,7 @@ define(
value[this.reversedPropertyMap[property]] = value[property];
delete value[property];
}
} else if (this.model && !this.model.superclass.schema.hasOwnProperty(property)) {
} else if (this.model && !this.model.prototype.schema.hasOwnProperty(property)) {
value._hidden = value._hidden || {};
value._hidden[property] = value[property];
delete value[property];
......@@ -77,7 +77,7 @@ define(
value[this.propertyMap[property]] = value[property];
delete value[property];
}
} else if (this.model && !this.model.superclass.schema.hasOwnProperty(property)) {
} else if (this.model && !this.model.prototype.schema.hasOwnProperty(property)) {
delete value[property];
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment