From 781df82160c01031b54a1b26d28248bf425b7f70 Mon Sep 17 00:00:00 2001 From: Sebastian Gabbert Date: Thu, 17 Nov 2016 17:17:47 +0100 Subject: [PATCH 1/2] added customWithout --- insitu.backbone.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/insitu.backbone.js b/insitu.backbone.js index e10b855..53a1d40 100644 --- a/insitu.backbone.js +++ b/insitu.backbone.js @@ -150,6 +150,12 @@ _.extend(Backbone.Collection.prototype, { }, + customWithout: function(values, options){ + var result = this.without(values); + return this.reWrap(result, options); + }, + + // reWrapp & alternative array support customWhere: function(param, options) { // console.time("customWhere"); @@ -358,4 +364,4 @@ _.extend(Backbone.View.prototype, { return _.template(""); } -}); \ No newline at end of file +}); From 854f68e84bce664940f499cb677da516fadf8c01 Mon Sep 17 00:00:00 2001 From: Sebastian Gabbert Date: Thu, 17 Nov 2016 17:18:40 +0100 Subject: [PATCH 2/2] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ad2bdcd..f47c46c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "git://github.com/InSitu-Software/insitu.backbone.js" }, "main": "insitu.backbone.js", - "version": "0.1.6", + "version": "0.1.7", "dependencies": { "underscore": ">=1.2.3", "backbone": ">=1.3.2"