@goldfishjs/reactive
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.6.2](https://github.com/alipay/goldfish/compare/v2.6.1...v2.6.2) (2022-03-10) | ||
### Bug Fixes | ||
* the parent key logic ([fb78271](https://github.com/alipay/goldfish/commit/fb78271d3ecaa9a572d6c3690a6ec16ba68a363c)) | ||
## [2.6.1](https://github.com/alipay/goldfish/compare/v2.6.0...v2.6.1) (2022-03-08) | ||
@@ -8,0 +19,0 @@ |
@@ -32,2 +32,7 @@ import _isObject from "@goldfishjs/utils/lib/isObject"; | ||
} | ||
}, { | ||
key: "isStartWithKeyPathString", | ||
value: function isStartWithKeyPathString(target, keyPathString) { | ||
return target === keyPathString || target.indexOf(keyPathString) === 0 && '.['.indexOf(target.replace(keyPathString, '')[0]) !== -1; | ||
} | ||
/** | ||
@@ -45,3 +50,3 @@ * Remove current layer and all the children's listeners. | ||
for (var kps in this.fns) { | ||
if (kps.indexOf(keyPathString) === 0) { | ||
if (this.isStartWithKeyPathString(kps, keyPathString)) { | ||
for (var k in this.fns[kps]) { | ||
@@ -61,3 +66,3 @@ this.fns[kps][k](); | ||
for (var kps in this.fns) { | ||
if (kps !== keyPathString && kps.indexOf(keyPathString) === 0) { | ||
if (kps !== keyPathString && this.isStartWithKeyPathString(kps, keyPathString)) { | ||
for (var k in this.fns[kps]) { | ||
@@ -64,0 +69,0 @@ this.fns[kps][k](); |
{ | ||
"name": "@goldfishjs/reactive", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Reactive.", | ||
@@ -17,4 +17,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@goldfishjs/module-usage": "^2.6.1", | ||
"@goldfishjs/utils": "^2.6.1" | ||
"@goldfishjs/module-usage": "^2.6.2", | ||
"@goldfishjs/utils": "^2.6.2" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
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
47335
1146
Updated@goldfishjs/utils@^2.6.2