nemo-observable-util
Advanced tools
Comparing version 5.1.3 to 5.1.4
@@ -131,3 +131,3 @@ 'use strict'; | ||
// 一定是 decorator 打在 class getter setter 属性 | ||
if ('get' in v) { | ||
if ('get' in v && v.get !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], ( obj = {}, obj[propertyKey] = true, obj )); | ||
@@ -137,3 +137,3 @@ var obj; | ||
} | ||
if ('set' in v) { | ||
if ('set' in v && v.set !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], ( obj$1 = {}, obj$1[propertyKey] = true, obj$1 )); | ||
@@ -140,0 +140,0 @@ var obj$1; |
@@ -119,3 +119,3 @@ 'use strict'; | ||
// 一定是 decorator 打在 class getter setter 属性 | ||
if ('get' in v) { | ||
if ('get' in v && v.get !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], { | ||
@@ -126,3 +126,3 @@ [propertyKey]: true | ||
} | ||
if ('set' in v) { | ||
if ('set' in v && v.set !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], { | ||
@@ -129,0 +129,0 @@ [propertyKey]: true |
@@ -127,3 +127,3 @@ var connectionStore = new WeakMap(); | ||
// 一定是 decorator 打在 class getter setter 属性 | ||
if ('get' in v) { | ||
if ('get' in v && v.get !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], ( obj = {}, obj[propertyKey] = true, obj )); | ||
@@ -133,3 +133,3 @@ var obj; | ||
} | ||
if ('set' in v) { | ||
if ('set' in v && v.set !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], ( obj$1 = {}, obj$1[propertyKey] = true, obj$1 )); | ||
@@ -136,0 +136,0 @@ var obj$1; |
@@ -115,3 +115,3 @@ const connectionStore = new WeakMap(); | ||
// 一定是 decorator 打在 class getter setter 属性 | ||
if ('get' in v) { | ||
if ('get' in v && v.get !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], { | ||
@@ -122,3 +122,3 @@ [propertyKey]: true | ||
} | ||
if ('set' in v) { | ||
if ('set' in v && v.set !== undefined) { | ||
target[NemoObservableInfo] = _extends({}, target[NemoObservableInfo], { | ||
@@ -125,0 +125,0 @@ [propertyKey]: true |
{ | ||
"name": "nemo-observable-util", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "Simple transparent reactivity with 100% language coverage. Made with ES6 Proxies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs.es5.js", |
119909