Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ba6e681cb898f2596899c8079d327cdd9c2f33fc 1 parent 699fe32
@thomasst thomasst authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  backbone.js
View
3  backbone.js
@@ -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

Is this in stable chrome 28?

@wojcikstefan

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

Please sign in to comment.
Something went wrong with that request. Please try again.