Skip to content

Commit 25d7fa3

Browse files
smasalamarjan-georgiev
authored andcommitted
fix(swimlane#1567): fix aot compile (swimlane#1574)
1 parent ae4f6a2 commit 25d7fa3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/components/body/body-row.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class DataTableBodyRowComponent implements DoCheck {
118118
_offsetX: number;
119119
_columns: any[];
120120
_innerWidth: number;
121-
_groupStyles = {
121+
_groupStyles: {[prop: string]: {}} = {
122122
left: {},
123123
center: {},
124124
right: {}
@@ -150,9 +150,9 @@ export class DataTableBodyRowComponent implements DoCheck {
150150
}
151151

152152
buildStylesByGroup() {
153-
this._groupStyles['left'] = this.calcStylesByGroup('left');
154-
this._groupStyles['center'] = this.calcStylesByGroup('center');
155-
this._groupStyles['right'] = this.calcStylesByGroup('right');
153+
this._groupStyles.left = this.calcStylesByGroup('left');
154+
this._groupStyles.center = this.calcStylesByGroup('center');
155+
this._groupStyles.right = this.calcStylesByGroup('right');
156156
this.cd.markForCheck();
157157
}
158158

src/components/header/header.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class DataTableHeaderComponent {
134134
_offsetX: number;
135135
_columns: any[];
136136
_headerHeight: string;
137-
_styleByGroup = {
137+
_styleByGroup: {[prop: string]: {}} = {
138138
left: {},
139139
center: {},
140140
right: {}
@@ -277,9 +277,9 @@ export class DataTableHeaderComponent {
277277
}
278278

279279
setStylesByGroup() {
280-
this._styleByGroup['left'] = this.calcStylesByGroup('left');
281-
this._styleByGroup['center'] = this.calcStylesByGroup('center');
282-
this._styleByGroup['right'] = this.calcStylesByGroup('right');
280+
this._styleByGroup.left = this.calcStylesByGroup('left');
281+
this._styleByGroup.center = this.calcStylesByGroup('center');
282+
this._styleByGroup.right = this.calcStylesByGroup('right');
283283
this.cd.detectChanges();
284284
}
285285

0 commit comments

Comments
 (0)