Permalink
Browse files

Fixes weird bug in minified version of code - only in Chrome 28-29

  • Loading branch information...
1 parent 699fe32 commit ba6e681cb898f2596899c8079d327cdd9c2f33fc @thomasst thomasst committed Jul 23, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 backbone.js
View
@@ -783,7 +783,8 @@
// Get a model from the set by id.
get: function(obj) {
if (obj == null) return void 0;
- return this._byId[obj.id != null ? obj.id : obj.cid || obj];
+ var id = obj.id; // Fixes weird bug in minified version of code - only in Chrome 28-29
+ return this._byId[id != null ? id : obj.cid || obj];
},
// Get the model at the given index.

2 comments on commit ba6e681

@jdalton
jdalton commented on ba6e681 Aug 2, 2013

Is this in stable chrome 28?

@wojcikstefan
Member

@jdalton yes. It's probably related to jashkenas#2701

Please sign in to comment.