objectlisteners
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -487,18 +487,23 @@ | ||
var prev = parents[idx]; | ||
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++; | ||
} | ||
} | ||
} | ||
} | ||
@@ -505,0 +510,0 @@ } |
{ | ||
"name": "objectlisteners", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Creates arbitrary event listeners that you can use to watch for changes in an object and fire event subscriptions ", | ||
@@ -5,0 +5,0 @@ "main": "ObjectListener.js", |
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
61091
605