Skip to content

Commit

Permalink
Ensure attr is a string when passed to this.map.
Browse files Browse the repository at this point in the history
  • Loading branch information
John-David Dalton committed Nov 24, 2015
1 parent a5adc1d commit 24ac066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24ac066

Please sign in to comment.