Comparing version 4.2.2 to 4.2.3
@@ -256,8 +256,13 @@ var List = require('can-list'); | ||
QUnit.test('removing expandos on lists', function(assert) { | ||
QUnit.test('expandos on lists', function(assert) { | ||
var list = new List(["a","b"]); | ||
list.attr("foo","bar"); | ||
assert.equal(list.attr("foo"), "bar", "can add an attr"); | ||
list.removeAttr("foo"); | ||
assert.equal(list.length, 2); | ||
list.attr("foo", undefined); // creating a property | ||
}); | ||
@@ -264,0 +269,0 @@ |
@@ -49,2 +49,4 @@ "use strict"; | ||
this.length = 0; | ||
// create this for expando properties | ||
this._data = {}; | ||
CID(this, ".map"); | ||
@@ -51,0 +53,0 @@ this._setupComputedProperties(); |
@@ -8,3 +8,2 @@ [ | ||
"can-list.prototype.splice", | ||
"can-list.prototype.each", | ||
"can-list.prototype.reverse", | ||
@@ -11,0 +10,0 @@ "can-list.prototype.map" |
{ | ||
"name": "can-list", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "Observable lists", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
Sorry, the diff of this file is not supported yet
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
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
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
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
1369
0
71756
21