Comparing version 4.3.15 to 4.3.16
@@ -105,4 +105,4 @@ "use strict"; | ||
serializeMap[how][cid] = where; | ||
// Go through each property. | ||
map.forEach(function (val, name) { | ||
function handleAttribute (val, name) { | ||
// If the value is an `object`, and has an `attr` or `serialize` function. | ||
@@ -127,3 +127,13 @@ var result, | ||
} | ||
}); | ||
} | ||
// Go through each property. | ||
map.forEach(handleAttribute); | ||
// For legacy behavior, includes attrs whose can.define spec includes `serialize: false` | ||
if (map._legacyAttrBehavior && how === "attr" && map.define) { | ||
Object.keys(map.define).forEach(function (name) { | ||
if (map.define[name].serialize === false) { | ||
handleAttribute(map.attr(name), name); | ||
} | ||
}); | ||
} | ||
@@ -130,0 +140,0 @@ if(firstSerialize) { |
{ | ||
"name": "can-map", | ||
"version": "4.3.15", | ||
"version": "4.3.16", | ||
"description": "Observable Objects", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
90225
1843