Skip to content

Commit

Permalink
Updated add/remove references to support backbone 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Lindberg committed Mar 14, 2012
1 parent 5304054 commit a344675
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backbone.subset.js
Expand Up @@ -113,8 +113,8 @@
* @param {Object} options * @param {Object} options
* @return {Object} model * @return {Object} model
*/ */
Subset._add = function (model, options) { Subset.add = function (model, options) {
return getValue(this, 'parent')._add(model, options); return getValue(this, 'parent').add(model, options);
}; };


/** /**
Expand Down Expand Up @@ -143,7 +143,7 @@
} }


if (this.sieve(model)) { if (this.sieve(model)) {
return Backbone.Collection.prototype._add.call(this, model, options); return Backbone.Collection.prototype.add.call(this, model, options);
} }
}; };


Expand All @@ -154,8 +154,8 @@
* @param {Object} options * @param {Object} options
* @return {Object} model * @return {Object} model
*/ */
Subset._remove = function (model, options) { Subset.remove = function (model, options) {
return getValue(this, 'parent')._remove(model, options); return getValue(this, 'parent').remove(model, options);
}; };


/** /**
Expand All @@ -166,7 +166,7 @@
* @return {Object} model * @return {Object} model
*/ */
Subset._removeFromSubset = function (model, options) { Subset._removeFromSubset = function (model, options) {
return Backbone.Collection.prototype._remove.call(this, model, options); return Backbone.Collection.prototype.remove.call(this, model, options);
}; };


/** /**
Expand Down

0 comments on commit a344675

Please sign in to comment.