Comparing version 3.1.0-pre.6 to 3.1.0-pre.7
@@ -238,6 +238,12 @@ /* jshint asi:true */ | ||
test("map passed to Map constructor (#1166)", function(){ | ||
var map = new Map({x: 1}); | ||
function y() {} | ||
var map = new Map({ | ||
x: 1, | ||
y: y | ||
}); | ||
var res = new Map(map); | ||
deepEqual(res.attr(), { | ||
x: 1 | ||
x: 1, | ||
y: y | ||
}, "has the same properties"); | ||
@@ -244,0 +250,0 @@ }); |
@@ -113,6 +113,6 @@ // # can/map/map_hepers | ||
getValue: function(map, name, val, how){ | ||
if( canReflect.isMapLike(val) ) { | ||
if(how === "attr") { | ||
how = canSymbol.for("can.getValue"); | ||
} | ||
if(how === "attr") { | ||
how = canSymbol.for("can.getValue"); | ||
} | ||
if( canReflect.isMapLike(val) && val[how] ) { | ||
return val[how](); | ||
@@ -119,0 +119,0 @@ } else { |
{ | ||
"name": "can-map", | ||
"version": "3.1.0-pre.6", | ||
"version": "3.1.0-pre.7", | ||
"description": "Observable Objects", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
294176
6126
0