@lightningtv/core
Advanced tools
Comparing version 2.2.10 to 2.2.11
@@ -59,3 +59,14 @@ import { isArray, isString } from './utils.js'; | ||
for (const state in newStates) { | ||
this.toggle(state, newStates[state]); | ||
const value = newStates[state]; | ||
if (value) { | ||
if (!this.has(state)) { | ||
this.push(state); | ||
} | ||
} | ||
else { | ||
const stateIndexToRemove = this.indexOf(state); | ||
if (stateIndexToRemove >= 0) { | ||
this.splice(stateIndexToRemove, 1); | ||
} | ||
} | ||
} | ||
@@ -62,0 +73,0 @@ } |
{ | ||
"name": "@lightningtv/core", | ||
"version": "2.2.10", | ||
"version": "2.2.11", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -67,3 +67,13 @@ import { isArray, isString } from './utils.js'; | ||
for (const state in newStates) { | ||
this.toggle(state, newStates[state]); | ||
const value = newStates[state]; | ||
if (value) { | ||
if (!this.has(state)) { | ||
this.push(state); | ||
} | ||
} else { | ||
const stateIndexToRemove = this.indexOf(state); | ||
if (stateIndexToRemove >= 0) { | ||
this.splice(stateIndexToRemove, 1); | ||
} | ||
} | ||
} | ||
@@ -70,0 +80,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
221215
3378