Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated add/remove references to support backbone 0.9

  • Loading branch information...
commit a34467538784cda230d0875b86d716b41f8888ac 1 parent 5304054
Steven Lindberg authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 backbone.subset.js
View
12 backbone.subset.js
@@ -113,8 +113,8 @@
* @param {Object} options
* @return {Object} model
*/
- Subset._add = function (model, options) {
- return getValue(this, 'parent')._add(model, options);
+ Subset.add = function (model, options) {
+ return getValue(this, 'parent').add(model, options);
};
/**
@@ -143,7 +143,7 @@
}
if (this.sieve(model)) {
- return Backbone.Collection.prototype._add.call(this, model, options);
+ return Backbone.Collection.prototype.add.call(this, model, options);
}
};
@@ -154,8 +154,8 @@
* @param {Object} options
* @return {Object} model
*/
- Subset._remove = function (model, options) {
- return getValue(this, 'parent')._remove(model, options);
+ Subset.remove = function (model, options) {
+ return getValue(this, 'parent').remove(model, options);
};
/**
@@ -166,7 +166,7 @@
* @return {Object} model
*/
Subset._removeFromSubset = function (model, options) {
- return Backbone.Collection.prototype._remove.call(this, model, options);
+ return Backbone.Collection.prototype.remove.call(this, model, options);
};
/**
Please sign in to comment.
Something went wrong with that request. Please try again.