Comparing version 4.0.0 to 4.0.1
@@ -495,1 +495,7 @@ /* jshint asi:true */ | ||
}); | ||
QUnit.test("prototype properties", function(assert) { | ||
var MyMap = Map.extend({ letters: "ABC" }); | ||
var map = new MyMap(); | ||
assert.equal(map.attr("letters"), "ABC"); | ||
}); |
@@ -104,6 +104,4 @@ /* jshint -W079 */ | ||
prop !== "constructor" && | ||
( | ||
typeof this.prototype[prop] !== "function" && !canReflect.isValueLike(this.prototype[prop]) || | ||
this.prototype[prop].prototype instanceof Construct | ||
) | ||
(typeof this.prototype[prop] !== "function" || | ||
this.prototype[prop].prototype instanceof Construct) | ||
) { | ||
@@ -410,3 +408,3 @@ this.defaults[prop] = this.prototype[prop]; | ||
if ( computedAttr ) { | ||
canReflect.setKeyValue(computedAttr.compute, val); | ||
canReflect.setValue(computedAttr.compute, val); | ||
} else { | ||
@@ -413,0 +411,0 @@ this._data[prop] = val; |
{ | ||
"name": "can-map", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Observable Objects", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78392
1503
1