[ADF-1287] compatibility with the new noUnusedLocals rule (#2170)

* support for noUnusedLocals rule

* clean diagram components

* code cleanup

* Viewer fixes

* code fixes

* code fixes
This commit is contained in:
Denys Vuika
2017-08-04 15:35:15 +01:00
committed by Mario Romano
parent 0f239a1fa3
commit 9d3962b3b5
113 changed files with 190 additions and 346 deletions

View File

@@ -67,8 +67,8 @@ export class ContextMenuHolderComponent {
isShown = false;
private mouseLocation: { left: number, top: number } = {left: 0, top: 0};
constructor(private _contextMenuService: ContextMenuService) {
_contextMenuService.show.subscribe(e => this.showMenu(e.event, e.obj));
constructor(contextMenuService: ContextMenuService) {
contextMenuService.show.subscribe(e => this.showMenu(e.event, e.obj));
}
get locationCss() {

View File

@@ -28,8 +28,6 @@ import { SearchService } from './search.service';
import { StorageService } from './storage.service';
import { UserPreferencesService } from './user-preferences.service';
declare let jasmine: any;
describe('SearchService', () => {
let service: SearchService;

View File

@@ -43,7 +43,8 @@
"es2015",
"dom"
],
"suppressImplicitAnyIndexErrors": true
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true
},
"exclude": [
"demo",