Skip to content

Commit

Permalink
Merge pull request #13 from SAP-samples/refactor/exercises-remove-todos
Browse files Browse the repository at this point in the history
refactor(exercises): remove TS based todo comments
  • Loading branch information
koeppel authored Jan 24, 2025
2 parents f1181a4 + c8adf70 commit 42c171b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions exercises/ex04/sample.p13n/webapp/control/P13nTable.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Table, { $TableSettings } from "sap/m/Table"
import Engine, { State } from "sap/m/p13n/Engine"
import SelectionController from "sap/m/p13n/SelectionController"
// @ts-ignore TODO: FIX export of MetadataObject type
import MetadataHelper, { MetadataObject } from "sap/m/p13n/MetadataHelper"
import Column from "sap/m/Column"
import Text from "sap/m/Text"
Expand All @@ -24,7 +23,6 @@ export default class P13nTable extends Table {

constructor(id?: string, settings?: $TableSettings) {
super(id, settings)
// @ts-ignore TODO: FIX static method declaration
this.engine = Engine.getInstance()
this.initialized = new Promise((resolve: () => void): void => {
this.attachEventOnce("updateFinished", (): void => {
Expand All @@ -47,13 +45,11 @@ export default class P13nTable extends Table {
}
})

// @ts-ignore TODO: FIX constructor
this.helper = new MetadataHelper(columnsMetadata)

this.engine.register(this, {
helper: this.helper,
controller: {
// @ts-ignore TODO: FIX constructor
Columns: new SelectionController({
control: this,
targetAggregation: "columns"
Expand Down
1 change: 0 additions & 1 deletion exercises/ex06/sample.p13n/webapp/control/P13nTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default class P13nTable extends Table {

constructor(id?: string, settings?: $TableSettings) {
super(id, settings)
// @ts-ignore TODO: FIX static method declaration
this.engine = Engine.getInstance()
this.initialized = new Promise((resolve: () => void): void => {
this.attachEventOnce("updateFinished", (): void => {
Expand Down
1 change: 0 additions & 1 deletion exercises/ex09/sample.p13n/webapp/control/P13nTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default class P13nTable extends Table {

constructor(id?: string, settings?: $TableSettings) {
super(id, settings)
// @ts-ignore TODO: FIX static method declaration
this.engine = Engine.getInstance()
this.initialized = new Promise((resolve: () => void): void => {
this.attachEventOnce("updateFinished", (): void => {
Expand Down

0 comments on commit 42c171b

Please sign in to comment.