Skip to content

Commit

Permalink
first experimental version for latest backbone
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed May 13, 2012
1 parent 1f21334 commit 412997a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions backbone.subset.js
Expand Up @@ -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);
};

/**
Expand All @@ -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);
}
};

Expand All @@ -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);
};

/**
Expand All @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,6 +5,6 @@
"author": "Pau ramon <masylum@gmail.com>",
"contributors": ["Saimon Moore <saimon@saimonmoore.net>", "Philip Roberts <phil@latentflip.com>"],
"repository": {"type": "git", "url": "git://github.com/masylum/Backbone.Subset.git"},
"devDependencies": {"backbone": "0.5.3", "underscore": "*", "mocha": "*"},
"devDependencies": {"backbone": "*", "underscore": "*", "mocha": "*"},
"main": "./backbone.subset"
}

0 comments on commit 412997a

Please sign in to comment.