Skip to content

Commit 0158f56

Browse files
committed
ISSUE #713 - Wrestle TypeScript
1 parent f108b51 commit 0158f56

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

frontend/components/panel/js/panel.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class PanelController implements ng.IController {
144144
/*
145145
* Watch for screen resize
146146
*/
147-
angular.element(this.$window).bind("resize", () => {
147+
angular.element(window as any).bind("resize", () => {
148148
this.resize();
149149
});
150150

@@ -290,7 +290,7 @@ class PanelController implements ng.IController {
290290
}
291291
}
292292
this.$timeout().then(() => {
293-
angular.element(this.$window).triggerHandler("resize");
293+
angular.element(window as any).triggerHandler("resize");
294294
});
295295
}
296296

frontend/components/tree/js/tree.component.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class TreeController implements ng.IController {
5959
constructor(
6060
private $scope: IScope,
6161
private $timeout: ITimeoutService,
62-
private $window: any,
6362

6463
private TreeService,
6564
private EventService,
@@ -120,7 +119,7 @@ class TreeController implements ng.IController {
120119
selectedNode.selected = true;
121120
});
122121

123-
angular.element(this.$window).triggerHandler("resize");
122+
angular.element((window as any).window).triggerHandler("resize");
124123

125124
}
126125
}
@@ -386,7 +385,7 @@ class TreeController implements ng.IController {
386385
height = 70;
387386
}
388387
this.onContentHeightRequest({height});
389-
angular.element(this.$window).triggerHandler("resize");
388+
angular.element((window as any).window).triggerHandler("resize");
390389

391390
}
392391

0 commit comments

Comments
 (0)