Comparing version 3.1.0-pre.9 to 3.1.0-pre.10
@@ -430,2 +430,28 @@ var List = require('can-list'); | ||
test('filter with context', function(){ | ||
var l = new List([{id: 1}]); | ||
var context = {}; | ||
var contextWasCorrect = false; | ||
l.filter(function(){ | ||
contextWasCorrect = (this === context); | ||
return true; | ||
}, context); | ||
equal(contextWasCorrect, true, "context was correctly passed"); | ||
}); | ||
test('map with context', function(){ | ||
var l = new List([{id: 1}]); | ||
var context = {}; | ||
var contextWasCorrect = false; | ||
l.map(function(){ | ||
contextWasCorrect = (this === context); | ||
return true; | ||
}, context); | ||
equal(contextWasCorrect, true, "context was correctly passed"); | ||
}); | ||
test("works with can-reflect", 11, function(){ | ||
@@ -432,0 +458,0 @@ var a = new Map({ foo: 4 }); |
@@ -941,3 +941,3 @@ /* jshint -W079 */ | ||
this.each(function(item, index, list){ | ||
filtered = callback.call( thisArg | self, item, index, self); | ||
filtered = callback.call( thisArg || self, item, index, self); | ||
if(filtered){ | ||
@@ -953,3 +953,3 @@ filteredList.push(item); | ||
this.each(function(item, index, list){ | ||
var mapped = callback.call( thisArg | self, item, index, self); | ||
var mapped = callback.call( thisArg || self, item, index, self); | ||
filteredList.push(mapped); | ||
@@ -956,0 +956,0 @@ |
{ | ||
"name": "can-list", | ||
"version": "3.1.0-pre.9", | ||
"version": "3.1.0-pre.10", | ||
"description": "Observable lists", | ||
@@ -49,3 +49,3 @@ "homepage": "http://canjs.com", | ||
"can-types": "^1.0.1", | ||
"can-util": "^3.1.1" | ||
"can-util": "^3.2.2" | ||
}, | ||
@@ -52,0 +52,0 @@ "devDependencies": { |
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
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
75299
24
1451
Updatedcan-util@^3.2.2