@soundworks/core
Advanced tools
Comparing version 3.1.0-beta.3 to 3.1.0-beta.4
@@ -491,9 +491,4 @@ "use strict"; | ||
const updated = !(0, _fastDeepEqual.default)(currentValue, value); | ||
this._values[name] = value; | ||
this._values[name] = value; // return tuple so that the state manager can handle the `filterChange` option | ||
if (def.event === true) { | ||
this._values[name] = null; | ||
} // return tuple so that the state manager can handle the `filterChange` option | ||
return [value, updated]; | ||
@@ -500,0 +495,0 @@ } |
@@ -190,3 +190,14 @@ "use strict"; | ||
await Promise.all(promises); | ||
await Promise.all(promises); // reset events to null after propagation of all listeners | ||
for (let name in newValues) { | ||
const { | ||
event | ||
} = this._parameters.getSchema(name); | ||
if (event) { | ||
this._parameters.set(name, null); | ||
} | ||
} | ||
return newValues; | ||
@@ -259,3 +270,3 @@ } | ||
if (changed || filterChange === false) { | ||
if (changed || filterChange === false || event) { | ||
immediateOldValues[name] = oldValue; | ||
@@ -262,0 +273,0 @@ immediateNewValues[name] = newValue; |
@@ -84,5 +84,11 @@ "use strict"; | ||
const { | ||
event, | ||
filterChange | ||
} = this._parameters.getSchema(name); | ||
} = this._parameters.getSchema(name); // if event type reset internal value to null | ||
if (event) { | ||
this._parameters.set(name, null); | ||
} | ||
if (filterChange && changed || !filterChange) { | ||
@@ -89,0 +95,0 @@ filteredUpdates[name] = newValue; |
{ | ||
"name": "@soundworks/core", | ||
"version": "3.1.0-beta.3", | ||
"version": "3.1.0-beta.4", | ||
"description": "full-stack javascript framework for distributed audio visual experiences on the web", | ||
@@ -5,0 +5,0 @@ "authors": [ |
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
164519
4060