can-observation
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -530,8 +530,16 @@ // require("./can-observation-async-test"); | ||
var name = simpleObservable("John Doe"); | ||
var fn = function() {}; | ||
assert.expect(3); | ||
var log = dev.log; | ||
dev.log = function() { | ||
dev.log = log; | ||
assert.equal(arguments[0], "Observation<>", "should use can.getName"); | ||
// Functions in IE11 dont have name property | ||
// this test is ignored under IE11 | ||
if (fn.name) { | ||
assert.equal(arguments[0], "Observation<>", "should use can.getName"); | ||
} else { | ||
assert.expect(2); | ||
} | ||
assert.equal(arguments[2], '"Charles Babbage"', "should use current value"); | ||
@@ -538,0 +546,0 @@ assert.equal(arguments[4], '"John Doe"', "should use previous value"); |
@@ -47,4 +47,6 @@ "use strict"; | ||
this.onDependencyChange[getChangesSymbol] = function getChanges() { | ||
var s = new Set(); | ||
s.add(self); | ||
return { | ||
valueDependencies: new Set([self]) | ||
valueDependencies: s | ||
}; | ||
@@ -51,0 +53,0 @@ }; |
{ | ||
"name": "can-observation", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Core observable indicators", | ||
@@ -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
55166
1232
1