state-tree
Advanced tools
Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "state-tree", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A state tree that handles reference updates and lets you flush a description of changes", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -24,3 +24,3 @@ var React = require('react'); | ||
(typeof paths[key] === 'object' && paths[key].hasChanged(changes)) || | ||
(hasChanged(paths[key], changes)) | ||
(typeof paths[key] !== 'object' && hasChanged(paths[key], changes)) | ||
) { | ||
@@ -27,0 +27,0 @@ return this.forceUpdate(); |
@@ -170,3 +170,3 @@ # state-tree (EXPERIMENTAL) | ||
var hasUpdate = listPath.reduce(function (changes, key) { | ||
return changes[key]; | ||
return changes ? changes[key] : false; | ||
}, changes); // undefined | ||
@@ -173,0 +173,0 @@ if (hasUpdate) { |
@@ -124,3 +124,3 @@ var subscribers = []; | ||
return path.split('.').reduce(function (changes, key) { | ||
return changes[key]; | ||
return changes ? changes[key] : false; | ||
}, changes); | ||
@@ -127,0 +127,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
32776