remove collection setting

This commit is contained in:
Jeremy Ashkenas
2010-10-02 16:05:49 -04:00
parent 6c993eb1be
commit a7b43b91be

View File

@@ -200,11 +200,6 @@
if (!attrs) return this;
attrs = attrs._attributes || attrs;
var now = this._attributes;
if (attrs.collection) {
this.collection = attrs.collection;
delete attrs.collection;
this.resource = this.collection.resource + '/' + this.id;
}
if (attrs.id) {
this.id = attrs.id;
if (this.collection) this.resource = this.collection.resource + '/' + this.id;