Skip to content

Commit ad66bbb

Browse files
committed
Arrow notation for data, improvements, comments
1 parent 6cae27e commit ad66bbb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/Blockly.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ export default {
218218
Prism: () =>
219219
import('vue-prism-component')
220220
},
221-
data() {
222-
return {
221+
data: () => ({
222+
223223
settings: null,
224224
snackText: null,
225225
snackbar: false,
@@ -244,8 +244,8 @@ export default {
244244
newProgramName: '',
245245
unvalidName: false,
246246
del: false,
247-
};
248-
},
247+
248+
}),
249249
computed: {
250250
statusText: function() {
251251
if (this.status) {
@@ -260,11 +260,13 @@ export default {
260260
let axios = this.$axios
261261
this.status = null
262262
this.pollStatus();
263+
264+
// Start the polling
263265
setInterval(function() {
264266
this.pollStatus();
265267
}.bind(this), 1000)
266268
267-
269+
// Get the legacy configuration and initialize Blockly
268270
axios.get(this.CBv1 + '/config')
269271
.then(function(response) {
270272
var settings = response.data

0 commit comments

Comments
 (0)