[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

@@ -27,8 +27,6 @@ import { ObjectDataRow, ObjectDataTableAdapter } from '../../data/object-datatab
import { DataCellEvent } from './data-cell.event';
import { DataRowActionEvent } from './data-row-action.event';
declare var componentHandler;
@Component({
selector: 'adf-datatable, alfresco-datatable',
styleUrls: ['./datatable.component.scss'],
@@ -110,7 +108,7 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck
constructor(translateService: AlfrescoTranslationService,
private elementRef: ElementRef,
private differs: IterableDiffers) {
differs: IterableDiffers) {
if (differs) {
this.differ = differs.find([]).create(null);
}

View File

@@ -20,8 +20,6 @@ import { TemplateRef } from '@angular/core';
import { ObjectUtils } from 'ng2-alfresco-core';
import { DataColumn, DataRow, DataSorting, DataTableAdapter } from './datatable-adapter';
declare var require: any;
// Simple implementation of the DataTableAdapter interface.
export class ObjectDataTableAdapter implements DataTableAdapter {

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { async, TestBed } from '@angular/core/testing';
import { CoreModule } from 'ng2-alfresco-core';
import { DataTableCellComponent } from '../components/datatable/datatable-cell.component';
import { DataTableComponent } from '../components/datatable/datatable.component';

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { async, getTestBed, TestBed } from '@angular/core/testing';
import { async, TestBed } from '@angular/core/testing';
import { CoreModule } from 'ng2-alfresco-core';
import { DataTableCellComponent } from '../components/datatable/datatable-cell.component';
import { DataTableComponent } from '../components/datatable/datatable.component';

View File

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