Comparing version 4.0.0-pre.8 to 4.0.0-pre.9
@@ -416,13 +416,2 @@ var List = require('can-list'); | ||
test('each callback', function () { | ||
var list = new List([]), | ||
counter = 0; | ||
list.attr(9, 'foo'); | ||
list.each(function (item, index) { | ||
counter++; | ||
}); | ||
equal(counter, 1, 'Should not be invoked for uninitialized attr keys'); | ||
}); | ||
test('filter with context', function(){ | ||
@@ -429,0 +418,0 @@ var l = new List([{id: 1}]); |
@@ -748,3 +748,3 @@ /* jshint -W079 */ | ||
filtered; | ||
this.each(function(item, index, list){ | ||
this.forEach(function(item, index, list){ | ||
filtered = callback.call( thisArg || self, item, index, self); | ||
@@ -760,3 +760,3 @@ if(filtered){ | ||
self = this; | ||
this.each(function(item, index, list){ | ||
this.forEach(function(item, index, list){ | ||
var mapped = callback.call( thisArg || self, item, index, self); | ||
@@ -861,4 +861,3 @@ filteredList.push(mapped); | ||
List.prototype.each = List.prototype.forEach; | ||
Map.List = List; | ||
module.exports = namespace.List = List; |
{ | ||
"name": "can-list", | ||
"version": "4.0.0-pre.8", | ||
"version": "4.0.0-pre.9", | ||
"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
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
0
69634
22
1297