Skip to content

Commit ef32c45

Browse files
committed
fix key comparison in KeyedCollection pop
1 parent a04fe52 commit ef32c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/_base/RendererPool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _.extend(KeyedCollection.prototype, {
2626
pop: function(key) {
2727
for (var i=0, l=this._collection.length; i < l; ++i) {
2828
var el = this._collection[i];
29-
if (el.key == key) {
29+
if (_.isEqual(el.key, key)) {
3030
this._collection.splice(i, 1);
3131
return el.value;
3232
}

0 commit comments

Comments
 (0)