Comparing version 3.0.0-pre.9 to 3.0.0-pre.11
@@ -49,3 +49,3 @@ /* jshint -W079 */ | ||
// function. | ||
setup: function () { | ||
setup: function (baseMap) { | ||
@@ -98,3 +98,3 @@ Construct.setup.apply(this, arguments); | ||
if(mapHelpers.define) { | ||
mapHelpers.define(this); | ||
mapHelpers.define(this, baseMap.prototype.define); | ||
} | ||
@@ -101,0 +101,0 @@ } |
@@ -10,2 +10,3 @@ // # can/map/map_hepers | ||
var types = require('can-util/js/types/types'); | ||
var assign = require('can-util/js/assign/assign'); | ||
// ## POJOs to Map instance helpers | ||
@@ -193,2 +194,8 @@ | ||
return madeMap && madeMap[obj._cid] && madeMap[obj._cid].instance; | ||
}, | ||
twoLevelDeepExtend: function (destination, source) { | ||
for (var prop in source) { | ||
destination[prop] = destination[prop] || {}; | ||
assign(destination[prop], source[prop]); | ||
} | ||
} | ||
@@ -195,0 +202,0 @@ }; |
{ | ||
"name": "can-map", | ||
"version": "3.0.0-pre.9", | ||
"version": "3.0.0-pre.11", | ||
"description": "Observable Objects", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
70320
1286
1