質問編集履歴
1
エラー内容の追記、コード記載の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,30 @@
|
|
4
4
|
駆け出しのエンジニアですが失礼します
|
5
5
|
上記の関数をfinalize()という関数の中で呼び出したいのですがエラーになってしまいます。上記を呼び出す時の書き方を教えていただきたいです。
|
6
6
|
```ここに言語を入力
|
7
|
-
finalize()
|
7
|
+
public finalize() {
|
8
|
+
this.setImgButton.removeEventListener('click', this.setImgButtonClick);
|
9
|
+
this.setTxtButton.removeEventListener('click', this.setTxtButtonClick);
|
10
|
+
|
11
|
+
this.pxPerContainer.removeEventListener('click', this.pxPerClickHandler);
|
12
|
+
|
13
|
+
|
8
|
-
|
14
|
+
for (let i = 0, len = this.addSectionPxWidthInputs.length; i < len; i++) {
|
15
|
+
this.addSectionPxWidthInputs[i].removeEventListener('change', this.validatePxValue);
|
9
|
-
}
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
SectionManagerUtil.detachSectionHoverEvents();
|
21
|
+
|
22
|
+
|
23
|
+
SectionManagerUtil.toggleEcSectionsCursor(false);
|
24
|
+
|
25
|
+
|
26
|
+
this.setAddSectionIconContainerPosition();
|
27
|
+
↓ここで呼び出そうとしています。そうするとエラーが出ています
|
28
|
+
this.setAddSectionIconContainerPosition();
|
29
|
+
}
|
10
30
|
```
|
31
|
+
エラー内容はこちらです
|
32
|
+
2 個の引数が必要ですが、0 個指定されました。ts(2554)
|
33
|
+
: 'target' の引数が指定されていません。
|