Skip to content

Commit 9adbd29

Browse files
committed
linting
1 parent 142b5cc commit 9adbd29

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

packages/platform-ui/src/components/Study/SessionConfiguration.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@ export default defineComponent({
117117
SkMouseTrapToolTip,
118118
},
119119
120-
beforeUnmount() {
121-
// Clean up registered hotkeys when component unmounts
122-
if (this._registeredHotkeys) {
123-
this._registeredHotkeys.forEach(key => {
124-
SkldrMouseTrap.removeBinding(key);
125-
});
126-
}
127-
},
128-
129120
props: {
130121
initialTimeLimit: {
131122
type: Number,
@@ -138,7 +129,7 @@ export default defineComponent({
138129
139130
data() {
140131
return {
141-
_registeredHotkeys: [] as (string | string[])[],
132+
registeredHotkeys: [] as (string | string[])[],
142133
allSelected: true,
143134
activeCourses: [] as (CourseRegistration & SessionConfigMetaData)[],
144135
activeClasses: [] as ({ classID: string } & SessionConfigMetaData)[],
@@ -158,6 +149,15 @@ export default defineComponent({
158149
},
159150
},
160151
152+
beforeUnmount() {
153+
// Clean up registered hotkeys when component unmounts
154+
if (this.registeredHotkeys) {
155+
this.registeredHotkeys.forEach(key => {
156+
SkldrMouseTrap.removeBinding(key);
157+
});
158+
}
159+
},
160+
161161
async created() {
162162
this.user = await getCurrentUser();
163163
this.timeLimit = this.initialTimeLimit;
@@ -176,8 +176,8 @@ export default defineComponent({
176176
177177
unmounted() {
178178
// Clean up registered hotkeys when component unmounts
179-
if (this._registeredHotkeys) {
180-
this._registeredHotkeys.forEach(key => {
179+
if (this.registeredHotkeys) {
180+
this.registeredHotkeys.forEach(key => {
181181
SkldrMouseTrap.removeBinding(key);
182182
});
183183
}
@@ -212,8 +212,8 @@ export default defineComponent({
212212
213213
startSession() {
214214
// Clean up any registered hotkeys before starting session
215-
if (this._registeredHotkeys) {
216-
this._registeredHotkeys.forEach(key => {
215+
if (this.registeredHotkeys) {
216+
this.registeredHotkeys.forEach(key => {
217217
SkldrMouseTrap.removeBinding(key);
218218
});
219219
}
@@ -295,7 +295,7 @@ export default defineComponent({
295295
},
296296
];
297297
SkldrMouseTrap.addBinding(hotkeys);
298-
this._registeredHotkeys = hotkeys.map(k => k.hotkey);
298+
this.registeredHotkeys = hotkeys.map(k => k.hotkey);
299299
},
300300
},
301301
});

0 commit comments

Comments
 (0)