mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Mario Romano
parent
0f239a1fa3
commit
9d3962b3b5
@@ -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() {
|
||||
|
@@ -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;
|
||||
|
@@ -43,7 +43,8 @@
|
||||
"es2015",
|
||||
"dom"
|
||||
],
|
||||
"suppressImplicitAnyIndexErrors": true
|
||||
"suppressImplicitAnyIndexErrors": true,
|
||||
"noUnusedLocals": true
|
||||
},
|
||||
"exclude": [
|
||||
"demo",
|
||||
|
Reference in New Issue
Block a user