Fixing Observables
This commit is contained in:
parent
77acf9d908
commit
f0e0dcc6ed
@ -376,4 +376,8 @@ export class nopeObservable<T, S = T, G = T> {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
public get hasSubscriptions() {
|
||||
return this.observable.observers.length > 0;
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@ import { nopeDispatcher } from "../dispatcher/nopeDispatcher";
|
||||
|
||||
export type pipe<T, K> = (scope: { [index: string]: any }, observable: Observable<T>) => Observable<K>
|
||||
|
||||
export class nopeRemoteObservable<G, S = G> {
|
||||
export class nopeRemoteObservable<T, S = T, G = T> {
|
||||
protected _pathes: {
|
||||
get: string,
|
||||
set: string,
|
||||
|
@ -23,6 +23,6 @@ const subEnhanced = observable.enhancedSubscription((v) => console.log('enhanced
|
||||
|
||||
let i = 1;
|
||||
while (i < 20) {
|
||||
observable.value = i++;
|
||||
console.log('current', observable.value);
|
||||
observable.setContent(i++);
|
||||
console.log('current', observable.getContent());
|
||||
}
|
Loading…
Reference in New Issue
Block a user