Comparing version 4.1.1 to 4.1.2
@@ -527,1 +527,15 @@ /* jshint asi:true */ | ||
}); | ||
QUnit.test("constructor should not bind on __keys (#106)", function(assert) { | ||
var map; | ||
var comp = canCompute(function() { | ||
map = new Map(); | ||
}); | ||
canReflect.onValue(comp, function() {}); | ||
map.attr('foo', 'bar'); | ||
assert.equal(map.attr('foo'), 'bar', 'map should not be reset'); | ||
}); |
@@ -659,3 +659,5 @@ "use strict"; | ||
"can.getOwnEnumerableKeys": function(){ | ||
ObservationRecorder.add(this, '__keys'); | ||
if (!this.__inSetup) { | ||
ObservationRecorder.add(this, '__keys'); | ||
} | ||
var enumerable = this.constructor.enumerable; | ||
@@ -662,0 +664,0 @@ if(enumerable) { |
{ | ||
"name": "can-map", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Observable Objects", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
79183
1533