Skip to content

Commit c85c3dd

Browse files
refactor(Application): Remove unnecessary super() calls (#2277)
1 parent fb2c086 commit c85c3dd

File tree

7 files changed

+16
-40
lines changed

7 files changed

+16
-40
lines changed

src/app/teacher/share-run-dialog/share-run-dialog.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ export class ShareRunDialogComponent extends ShareItemDialogComponent {
8787
});
8888
}
8989

90-
ngOnInit() {
91-
super.ngOnInit();
92-
}
93-
9490
updateAllOwners() {
9591
let allOwners = [];
9692
allOwners.push({

src/assets/wise5/components/animation/animation-student/animation-student.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ export class AnimationStudent extends ComponentStudent {
116116
this.setupSVG();
117117
}
118118

119-
ngOnDestroy(): void {
120-
super.ngOnDestroy();
121-
}
122-
123119
setAnimationState(state: string): void {
124120
this.animationState = state;
125121
}

src/assets/wise5/components/discussion/discussion-student/discussion-student.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ export class DiscussionStudent extends ComponentStudent {
142142
this.broadcastDoneRenderingComponent();
143143
}
144144

145-
ngOnDestroy(): void {
146-
super.ngOnDestroy();
147-
}
148-
149145
isConnectedComponentShowWorkMode() {
150146
if (this.component.hasConnectedComponent()) {
151147
let isShowWorkMode = true;

src/assets/wise5/components/graph/graph-student/graph-student.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ export class GraphStudent extends ComponentStudent {
163163
});
164164
}
165165

166-
ngOnDestroy(): void {
167-
super.ngOnDestroy();
168-
}
169-
170166
initializeComponentContentParams() {
171167
this.title = this.componentContent.title;
172168
this.subtitle = this.componentContent.subtitle;

src/assets/wise5/components/summary/summary-student/summary-student.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ export class SummaryStudent extends ComponentStudent {
8383
this.setPeriodIdIfNecessary();
8484
}
8585

86-
ngOnDestroy(): void {
87-
super.ngOnDestroy();
88-
}
89-
9086
getOtherPrompt(nodeId, componentId) {
9187
const otherComponent = this.projectService.getComponent(nodeId, componentId);
9288
if (otherComponent != null) {

src/assets/wise5/components/table/table-student/table-student.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,6 @@ export class TableStudentComponent extends ComponentStudent {
178178
}
179179
}
180180

181-
ngOnDestroy(): void {
182-
super.ngOnDestroy();
183-
}
184-
185181
initializeDataExplorer() {
186182
this.numDataExplorerSeries = this.componentContent.numDataExplorerSeries;
187183
this.dataExplorerGraphTypes = this.componentContent.dataExplorerGraphTypes;

src/messages.xlf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9914,7 +9914,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
99149914
<source>Transferred classroom unit ownership to <x id="firstName" equiv-text="run.owner.firstName"/> <x id="lastName" equiv-text="run.owner.lastName"/>.</source>
99159915
<context-group purpose="location">
99169916
<context context-type="sourcefile">src/app/teacher/share-run-dialog/share-run-dialog.component.ts</context>
9917-
<context context-type="linenumber">213</context>
9917+
<context context-type="linenumber">209</context>
99189918
</context-group>
99199919
</trans-unit>
99209920
<trans-unit id="3392754525167799121" datatype="html">
@@ -16770,7 +16770,7 @@ Are you sure you want to proceed?</source>
1677016770
<source>You do not have any more chances to receive feedback on your answer.</source>
1677116771
<context-group purpose="location">
1677216772
<context context-type="sourcefile">src/assets/wise5/components/animation/animation-student/animation-student.component.ts</context>
16773-
<context context-type="linenumber">926</context>
16773+
<context context-type="linenumber">922</context>
1677416774
</context-group>
1677516775
<context-group purpose="location">
1677616776
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
@@ -16787,7 +16787,7 @@ Are you sure you want to proceed?</source>
1678716787
Are you ready to receive feedback on this answer?</source>
1678816788
<context-group purpose="location">
1678916789
<context context-type="sourcefile">src/assets/wise5/components/animation/animation-student/animation-student.component.ts</context>
16790-
<context context-type="linenumber">929</context>
16790+
<context context-type="linenumber">925</context>
1679116791
</context-group>
1679216792
</trans-unit>
1679316793
<trans-unit id="1556483130839173989" datatype="html">
@@ -16796,7 +16796,7 @@ Are you ready to receive feedback on this answer?</source>
1679616796
Are you ready to receive feedback on this answer?</source>
1679716797
<context-group purpose="location">
1679816798
<context context-type="sourcefile">src/assets/wise5/components/animation/animation-student/animation-student.component.ts</context>
16799-
<context context-type="linenumber">933</context>
16799+
<context context-type="linenumber">929</context>
1680016800
</context-group>
1680116801
<context-group purpose="location">
1680216802
<context context-type="sourcefile">src/assets/wise5/components/conceptMap/concept-map-student/concept-map-student.component.ts</context>
@@ -18272,7 +18272,7 @@ Category Name: <x id="PH_1" equiv-text="categoryName"/></source>
1827218272
<source><x id="PH" equiv-text="usernames"/> replied to a discussion you were in!</source>
1827318273
<context-group purpose="location">
1827418274
<context context-type="sourcefile">src/assets/wise5/components/discussion/discussion-student/discussion-student.component.ts</context>
18275-
<context context-type="linenumber">224</context>
18275+
<context context-type="linenumber">220</context>
1827618276
</context-group>
1827718277
</trans-unit>
1827818278
<trans-unit id="831017338718169987" datatype="html">
@@ -19424,46 +19424,46 @@ Category Name: <x id="PH_1" equiv-text="categoryName"/></source>
1942419424
<source>Are you sure you want to overwrite the current line data?</source>
1942519425
<context-group purpose="location">
1942619426
<context context-type="sourcefile">src/assets/wise5/components/graph/graph-student/graph-student.component.ts</context>
19427-
<context context-type="linenumber">263</context>
19427+
<context context-type="linenumber">259</context>
1942819428
</context-group>
1942919429
</trans-unit>
1943019430
<trans-unit id="6882380861047606832" datatype="html">
1943119431
<source>The series you are trying to add a point to is currently hidden. Please show the series by clicking the series name in the legend and try adding the point again.</source>
1943219432
<context-group purpose="location">
1943319433
<context context-type="sourcefile">src/assets/wise5/components/graph/graph-student/graph-student.component.ts</context>
19434-
<context context-type="linenumber">886</context>
19434+
<context context-type="linenumber">882</context>
1943519435
</context-group>
1943619436
</trans-unit>
1943719437
<trans-unit id="2852989551014711458" datatype="html">
1943819438
<source>You can not edit this series. Please choose a series that can be edited.</source>
1943919439
<context-group purpose="location">
1944019440
<context context-type="sourcefile">src/assets/wise5/components/graph/graph-student/graph-student.component.ts</context>
19441-
<context context-type="linenumber">900</context>
19441+
<context context-type="linenumber">896</context>
1944219442
</context-group>
1944319443
</trans-unit>
1944419444
<trans-unit id="7053114367342967943" datatype="html">
1944519445
<source>Are you sure you want to reset the series?</source>
1944619446
<context-group purpose="location">
1944719447
<context context-type="sourcefile">src/assets/wise5/components/graph/graph-student/graph-student.component.ts</context>
19448-
<context context-type="linenumber">1133</context>
19448+
<context context-type="linenumber">1129</context>
1944919449
</context-group>
1945019450
</trans-unit>
1945119451
<trans-unit id="7889560203726829643" datatype="html">
1945219452
<source>Are you sure you want to reset the &quot;<x id="PH" equiv-text="seriesName"/>&quot; series?</source>
1945319453
<context-group purpose="location">
1945419454
<context context-type="sourcefile">src/assets/wise5/components/graph/graph-student/graph-student.component.ts</context>
19455-
<context context-type="linenumber">1135</context>
19455+
<context context-type="linenumber">1131</context>
1945619456
</context-group>
1945719457
</trans-unit>
1945819458
<trans-unit id="6999515396807067782" datatype="html">
1945919459
<source>Trial</source>
1946019460
<context-group purpose="location">
1946119461
<context context-type="sourcefile">src/assets/wise5/components/graph/graph-student/graph-student.component.ts</context>
19462-
<context context-type="linenumber">1552</context>
19462+
<context context-type="linenumber">1548</context>
1946319463
</context-group>
1946419464
<context-group purpose="location">
1946519465
<context context-type="sourcefile">src/assets/wise5/components/graph/graph-student/graph-student.component.ts</context>
19466-
<context context-type="linenumber">2384</context>
19466+
<context context-type="linenumber">2380</context>
1946719467
</context-group>
1946819468
</trans-unit>
1946919469
<trans-unit id="7500488806315952979" datatype="html">
@@ -21286,28 +21286,28 @@ If this problem continues, let your teacher know and move on to the next activit
2128621286
<source>You must submit work on &quot;<x id="PH" equiv-text="this.otherStepTitle"/>&quot; to view the summary.</source>
2128721287
<context-group purpose="location">
2128821288
<context context-type="sourcefile">src/assets/wise5/components/summary/summary-student/summary-student.component.ts</context>
21289-
<context context-type="linenumber">138</context>
21289+
<context context-type="linenumber">134</context>
2129021290
</context-group>
2129121291
</trans-unit>
2129221292
<trans-unit id="3834814461916183420" datatype="html">
2129321293
<source>You must complete &quot;<x id="PH" equiv-text="this.otherStepTitle"/>&quot; to view the summary.</source>
2129421294
<context-group purpose="location">
2129521295
<context context-type="sourcefile">src/assets/wise5/components/summary/summary-student/summary-student.component.ts</context>
21296-
<context context-type="linenumber">140</context>
21296+
<context context-type="linenumber">136</context>
2129721297
</context-group>
2129821298
</trans-unit>
2129921299
<trans-unit id="1745852243024604075" datatype="html">
2130021300
<source>You must submit work on &quot;<x id="PH" equiv-text="this.otherStepTitle"/>&quot; to view the class summary.</source>
2130121301
<context-group purpose="location">
2130221302
<context context-type="sourcefile">src/assets/wise5/components/summary/summary-student/summary-student.component.ts</context>
21303-
<context context-type="linenumber">146</context>
21303+
<context context-type="linenumber">142</context>
2130421304
</context-group>
2130521305
</trans-unit>
2130621306
<trans-unit id="8412691431688558361" datatype="html">
2130721307
<source>You must complete &quot;<x id="PH" equiv-text="this.otherStepTitle"/>&quot; to view the class summary.</source>
2130821308
<context-group purpose="location">
2130921309
<context context-type="sourcefile">src/assets/wise5/components/summary/summary-student/summary-student.component.ts</context>
21310-
<context context-type="linenumber">148</context>
21310+
<context context-type="linenumber">144</context>
2131121311
</context-group>
2131221312
</trans-unit>
2131321313
<trans-unit id="6594489851569621957" datatype="html">

0 commit comments

Comments
 (0)