mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
remove collection setting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user