@@ -25,7 +25,6 @@ export class NaoRobotModel extends DOMWidgetModel {
25
25
connected = 'Disconnected' ;
26
26
status = 'Not busy' ;
27
27
_services : serviceDict = { } ;
28
- synco : string ;
29
28
30
29
defaults ( ) {
31
30
return {
@@ -37,7 +36,6 @@ export class NaoRobotModel extends DOMWidgetModel {
37
36
_view_module : NaoRobotModel . view_module ,
38
37
_view_module_version : NaoRobotModel . view_module_version ,
39
38
value : 'Hello World' ,
40
- synco : 'something silly' ,
41
39
connected : 'Disconnected' ,
42
40
status : 'Not busy' ,
43
41
response : '' ,
@@ -241,7 +239,6 @@ export class NaoRobotModel extends DOMWidgetModel {
241
239
}
242
240
243
241
export class NaoRobotView extends DOMWidgetView {
244
- synco : HTMLDivElement ;
245
242
txt_connected : HTMLDivElement ;
246
243
txt_status : HTMLDivElement ;
247
244
@@ -258,23 +255,13 @@ export class NaoRobotView extends DOMWidgetView {
258
255
this . txt_status . textContent = 'Not busy' ;
259
256
this . el . appendChild ( this . txt_status ) ;
260
257
261
- // Testing element
262
- this . synco = document . createElement ( 'div' ) ;
263
- this . synco . textContent = 'it should be here' ;
264
- this . el . appendChild ( this . synco ) ;
265
-
266
258
this . value_changed ( ) ;
267
259
this . model . on ( 'change:connected' , this . value_changed , this ) ;
268
260
this . model . on ( 'change:status' , this . value_changed , this ) ;
269
- this . model . on ( 'change:synco' , this . value_changed , this ) ;
270
261
}
271
262
272
263
value_changed ( ) {
273
- // this.el.textContent = this.model.get('value');
274
- // this.synco = this.model.get('synco');
275
- console . log ( 'THE VALUE CHANGED' ) ;
276
264
this . txt_connected . textContent = this . model . get ( 'connected' ) ;
277
265
this . txt_status . textContent = this . model . get ( 'status' ) ;
278
- this . synco . textContent = this . model . get ( 'synco' ) ;
279
266
}
280
267
}
0 commit comments