anotherstatemanager
Advanced tools
Comparing version 1.0.14 to 1.0.15
{ | ||
"name": "anotherstatemanager", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Very flexible, performant, simple state management for managing a lot of rapid changes and various scenarios. Great for low overhead event management of game inputs and data streams.", | ||
@@ -23,3 +23,3 @@ "main": "StateManager.js", | ||
"dependencies": { | ||
"objectlisteners": "1.0.2" | ||
"objectlisteners": "1.0.3" | ||
}, | ||
@@ -26,0 +26,0 @@ "bugs": { |
@@ -462,18 +462,23 @@ import ObjectListener from 'objectlisteners' | ||
//console.log(value); | ||
if (prev[key] === value || idx === 0) { | ||
path.push(key); | ||
parents.push(value.pushed); | ||
} else { | ||
while (idx-- >= 0) { | ||
prev = parents[idx]; | ||
if (prev[key] === value) { | ||
idx += 2; | ||
parents.length = idx; | ||
path.length = idx; | ||
--idx; | ||
parents[idx] = value; | ||
path[idx] = key; | ||
break; | ||
if(typeof prev === 'object') { | ||
if (prev[key] === value || idx === 0) { | ||
path.push(key); | ||
parents.push(value.pushed); | ||
} else { | ||
while (idx-- >= 0) { | ||
prev = parents[idx]; | ||
if(typeof prev === 'object') { | ||
if (prev[key] === value) { | ||
idx += 2; | ||
parents.length = idx; | ||
path.length = idx; | ||
--idx; | ||
parents[idx] = value; | ||
path[idx] = key; | ||
break; | ||
} | ||
} | ||
idx++; | ||
} | ||
} | ||
} | ||
} | ||
@@ -480,0 +485,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
64716
571
+ Addedobjectlisteners@1.0.3(transitive)
- Removedobjectlisteners@1.0.2(transitive)
Updatedobjectlisteners@1.0.3