diff --git a/package.json b/package.json index 6132b19..437f55b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uci-utils/rx-class", - "version": "0.1.4", + "version": "0.1.5", "description": "class that support reactive properites", "main": "src/rx-class.js", "scripts": { diff --git a/src/rx-class.js b/src/rx-class.js index 853235a..b87ab2f 100644 --- a/src/rx-class.js +++ b/src/rx-class.js @@ -78,8 +78,7 @@ export default class RxClass extends EventEmitter { if (opts.amend_path || this._rx_.amend_path) rx.amendValue = (value,path) => {return {value:value, path: path}} // console.log(path,': initial value===>',rx.amendValue(rx.value,rx.path)) rx.obs = from(new BehaviorSubject(rx.amendValue(rx.value,rx.path)).pipe( - // rx.obs = from(new ReplaySubject(1).pipe( - skip(this._rx_.skip), + skip(opts.skip != null ? opts.skip : this._rx_.skip), distinctUntilChanged() // , // takeUntil($get(this.$deleted,path))