alamid-junction
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -125,8 +125,10 @@ "use strict"; | ||
this._values = {}; | ||
for (key in signals) { | ||
if (signals.hasOwnProperty(key)) { | ||
// just making sure that the signal's value is always in sync with the junction's value | ||
this._values[key] = undefined; | ||
signals[key](undefined); | ||
} | ||
} | ||
this._values = {}; | ||
@@ -133,0 +135,0 @@ return this; |
{ | ||
"name": "alamid-junction", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Provides convenient methods for setting and retrieving multiple signals", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Junction.js", |
@@ -9,3 +9,3 @@ "use strict"; | ||
chai.Assertion.includeStack = true; | ||
chai.config.includeStack = true; | ||
chai.use(require("sinon-chai")); | ||
@@ -257,2 +257,5 @@ | ||
it("should remove all keys from the junction", function () { | ||
// creating a signal instance just to make sure that this has no side-effect on reset() | ||
junction.signal("greeting"); | ||
junction.reset(); | ||
@@ -259,0 +262,0 @@ |
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
22522
517