[Pkg-javascript-commits] [backbone] 63/173: Ensure `attr` is a string when passed to `this.map`.

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:03 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 24ac0661bc28f74065c2b14c827d610d513e1348
Author: John-David Dalton <john.david.dalton at gmail.com>
Date:   Tue Nov 24 09:11:00 2015 -0800

    Ensure `attr` is a string when passed to `this.map`.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index d4442a3..17ea2c0 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1011,7 +1011,7 @@
 
     // Pluck an attribute from each model in the collection.
     pluck: function(attr) {
-      return this.map(attr);
+      return this.map(attr + '');
     },
 
     // Fetch the default set of models for this collection, resetting the

-- 
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