Browse Source

Renaming fixes

pull/118/head
Sebastian Stehle 9 years ago
parent
commit
6bafc42a2a
  1. 10
      src/Squidex/app/framework/angular/onboarding-tooltip.component.ts

10
src/Squidex/app/framework/angular/onboarding-tooltip.component.ts

@ -24,7 +24,7 @@ import { fadeAnimation } from './animations';
export class OnboardingTooltipComponent implements OnDestroy, OnInit { export class OnboardingTooltipComponent implements OnDestroy, OnInit {
private showTimer: any; private showTimer: any;
private closeTimer: any; private closeTimer: any;
private forClickListener: Function; private forMouseDownListener: Function;
public tooltipModal = new ModalView(); public tooltipModal = new ModalView();
@ -52,9 +52,9 @@ export class OnboardingTooltipComponent implements OnDestroy, OnInit {
this.tooltipModal.hide(); this.tooltipModal.hide();
if (this.forClickListener) { if (this.forMouseDownListener) {
this.forClickListener(); this.forMouseDownListener();
this.forClickListener = null; this.forMouseDownListener = null;
} }
} }
@ -72,7 +72,7 @@ export class OnboardingTooltipComponent implements OnDestroy, OnInit {
} }
}, this.after); }, this.after);
this.forClickListener = this.forMouseDownListener =
this.renderer.listen(this.for, 'mousedown', () => { this.renderer.listen(this.for, 'mousedown', () => {
this.onboardingService.disable(this.id); this.onboardingService.disable(this.id);

Loading…
Cancel
Save