ngOnDestroy() { try { if (this.subscriptionLoad) { this.subscriptionLoad.unsubscribe(); } } catch (e) { } }
@HostListener('mousedown', ['$event']) onMouseDown(event: MouseEvent) { this.mouseStart = {x: event.pageX, y: event.pageY}; const mouseup$ = Observable.fromEvent(document, 'mouseup'); this._subscription = mouseup$.subscribe(() => this.onMouseup()); const mousemove$ = Observable.fromEvent(document, 'mousemove') .pipe(takeUntil(mouseup$)) .subscribe((e: MouseEvent) => this.onMouseMove(e)); this._subscription.add(mousemove$); }
ngOnDestroy() { this.subs.forEach(v => { v.unsubscribe(); }); }
// // Runs when the page has finished leaving and is no longer the active page. // ionViewDidLeave ( ) : void { this.token_subscription.unsubscribe(); console.log ( `::ionViewDidLeave` ); }
ngOnDestroy() { // this.checkToSave(); try { if (this.subscriptionBrowse) { this.subscriptionBrowse.unsubscribe(); } if (this.subscriptionNodeAttribute) { this.subscriptionNodeAttribute.unsubscribe(); } } catch (e) { } }
stopDemo() { try { if (this.subscription) { this.subscription.unsubscribe(); } } catch (e) { } }
ngOnDestroy ( ) { this.height_subscription.unsubscribe(); this.token_subscription.unsubscribe(); }
ngOnDestroy() { try { if (this.subscriptionDeviceProperty) { this.subscriptionDeviceProperty.unsubscribe(); } } catch (e) { } }
ngOnDestroy() { try { if (this.subscriptionShowHelp) { this.subscriptionShowHelp.unsubscribe(); } } catch (e) { } }
ngOnDestroy() { try { if (this.subscriptionLoad) { this.subscriptionLoad.unsubscribe(); } if (this.subscriptionAlarmsStatus) { this.subscriptionAlarmsStatus.unsubscribe(); } } catch (e) { } }
ngOnDestroy() { try { if (this.subscriptionLoad) { this.subscriptionLoad.unsubscribe(); } } catch (e) { } }
// // Runs when the page has finished leaving and is no longer the active page. // ionViewDidLeave ( ) : void { this.token_subscription.unsubscribe(); console.log ( `::ionViewDidLeave` ); }
unsubscribe() { if (this.subscription) { this.subscription.unsubscribe(); } }
// // Runs when the page has finished leaving and is no longer the active page. // ionViewDidLeave ( ) : void { this.token_subscription.unsubscribe(); console.log ( `::ionViewDidLeave` ); }
ngOnDestroy ( ) { this.height_subscription.unsubscribe(); this.token_subscription.unsubscribe(); }