Skip to content

Commit 090f9ca

Browse files
fix lint
1 parent bd5cc0c commit 090f9ca

2 files changed

Lines changed: 22 additions & 23 deletions

File tree

packages/devextreme-angular/src/core/component.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import {
3737
ICollectionNestedOption,
3838
ICollectionNestedOptionContainer,
3939
CollectionNestedOptionContainerImpl,
40-
checkIncompatibleNestedItems,
41-
40+
checkIncompatibleNestedItems,
41+
4242
} from './nested-option';
4343

4444
import { DxIntegrationModule } from './integration';
@@ -64,13 +64,13 @@ export const getServerStateKey = () => {
6464
export abstract class DxComponent implements OnChanges, OnInit, DoCheck, AfterContentChecked, AfterViewInit, AfterViewChecked,
6565
INestedOptionContainer, ICollectionNestedOptionContainer, IDxTemplateHost {
6666
protected _dxClassName = 'DxComponent';
67-
67+
6868
private _initialOptions: any = {};
6969

7070
protected _optionsToUpdate: any = {};
7171

7272
private readonly _collectionContainerImpl: ICollectionNestedOptionContainer;
73-
73+
7474
eventHelper: EmitterHelper;
7575

7676
optionChangedHandlers: EventEmitter<any> = new EventEmitter();
@@ -90,20 +90,19 @@ export abstract class DxComponent implements OnChanges, OnInit, DoCheck, AfterCo
9090
widgetUpdateLocked = false;
9191

9292
templateUpdateRequired = false;
93-
94-
93+
9594
protected _setChildren(propertyName: string, items: QueryList<ICollectionNestedOption>) {
9695
const hasIncopatibleNestedItems = checkIncompatibleNestedItems(
97-
items,
98-
this._dxClassName,
99-
this.getLegacyClassNames()[propertyName]
96+
items,
97+
this._dxClassName,
98+
this.getLegacyClassNames()[propertyName],
10099
);
101100

102101
if (!hasIncopatibleNestedItems) {
103102
this.setChildren(propertyName, items);
104103
}
105104
}
106-
105+
107106
private _updateTemplates() {
108107
if (this.templates.length && this.templateUpdateRequired) {
109108
const updatedTemplates = {};

packages/devextreme-angular/src/core/nested-option.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ export interface INestedOptionContainer {
2323
export type IOptionPathGetter = () => string;
2424

2525
export const checkIncompatibleNestedItems = (
26-
items: QueryList<ICollectionNestedOption>,
27-
containerClassName,
28-
legacyClassNames,
29-
) => {
26+
items: QueryList<ICollectionNestedOption>,
27+
containerClassName,
28+
legacyClassNames,
29+
) =>
3030
/* if (console && console.warn) {
3131
console.warn(`In ${containerClassName},
3232
the nested ${itemClassName} and ${anotherItemClassName} components are incompatible.
3333
Ensure that all nested components in the content area match.`);
34-
}*/
35-
return false;
36-
};
37-
34+
} */
35+
false
36+
;
3837

3938
@Component({
4039
template: '',
4140
})
4241
export abstract class BaseNestedOption implements INestedOptionContainer, ICollectionNestedOptionContainer {
4342
protected _dxClassName = 'BaseNestedOption';
43+
4444
protected _host: INestedOptionContainer;
4545

4646
protected _hostOptionPath: IOptionPathGetter;
@@ -58,16 +58,16 @@ export abstract class BaseNestedOption implements INestedOptionContainer, IColle
5858

5959
protected _setChildren(propertyName: string, items: QueryList<ICollectionNestedOption>) {
6060
const hasIncopatibleNestedItems = checkIncompatibleNestedItems(
61-
items,
62-
this._dxClassName,
63-
null
61+
items,
62+
this._dxClassName,
63+
null,
6464
);
65-
65+
6666
if (!hasIncopatibleNestedItems) {
6767
this.setChildren(propertyName, items);
6868
}
6969
}
70-
70+
7171
protected _optionChangedHandler(e: any) {
7272
const fullOptionPath = this._fullOptionPath();
7373

0 commit comments

Comments
 (0)