Permalink
Browse files

avoid using private methods _add and _remove

  • Loading branch information...
1 parent 1f21334 commit 9ae86e8b747945d6a6b61db05614a6f4fb625326 @masylum committed May 13, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 backbone.subset.js
View
@@ -125,8 +125,8 @@
* @param {Object} options
* @return {Object} model
*/
- Subset._add = function (model, options) {
- return this.parent()._add(model, options);
+ Subset.add = function (model, options) {
+ return this.parent().add(model, options);
};
/**
@@ -138,7 +138,7 @@
*/
Subset._addToSubset = function (model, options) {
if (this.sieve(model)) {
- return Backbone.Collection.prototype._add.call(this, model, options);
+ return Backbone.Collection.prototype.add.call(this, model, options);
}
};
@@ -149,8 +149,8 @@
* @param {Object} options
* @return {Object} model
*/
- Subset._remove = function (model, options) {
- return this.parent()._remove(model, options);
+ Subset.remove = function (model, options) {
+ return this.parent().remove(model, options);
};
/**
@@ -161,7 +161,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);
}
/**

0 comments on commit 9ae86e8

Please sign in to comment.