[Pkg-javascript-commits] [backbone] 57/173: Make item arrayizing consistent through the file

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository backbone.

commit 681dea993d4daf289f9d99cde094c954e388ea3d
Author: mieszko4 <mieszko4 at gmail.com>
Date:   Tue Nov 17 05:44:44 2015 +0100

    Make item arrayizing consistent through the file
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index cb8d6ea..9b77eac 100644
--- a/backbone.js
+++ b/backbone.js
@@ -807,7 +807,7 @@
     remove: function(models, options) {
       options = _.extend({}, options);
       var singular = !_.isArray(models);
-      models = singular ? [models] : _.clone(models);
+      models = singular ? [models] : models.slice();
       var removed = this._removeModels(models, options);
       if (!options.silent && removed.length) this.trigger('update', this, options);
       return singular ? removed[0] : removed;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list