Show More
@@ -69,7 +69,7 define(["widgets/js/manager", | |||||
69 | var method = msg.content.data.method; |
|
69 | var method = msg.content.data.method; | |
70 | switch (method) { |
|
70 | switch (method) { | |
71 | case 'update': |
|
71 | case 'update': | |
72 |
this. |
|
72 | this.set_state(msg.content.data.state); | |
73 | break; |
|
73 | break; | |
74 | case 'custom': |
|
74 | case 'custom': | |
75 | this.trigger('msg:custom', msg.content.data.content); |
|
75 | this.trigger('msg:custom', msg.content.data.content); | |
@@ -80,7 +80,7 define(["widgets/js/manager", | |||||
80 | } |
|
80 | } | |
81 | }, |
|
81 | }, | |
82 |
|
82 | |||
83 |
|
|
83 | set_state: function (state) { | |
84 | // Handle when a widget is updated via the python side. |
|
84 | // Handle when a widget is updated via the python side. | |
85 | this.state_lock = state; |
|
85 | this.state_lock = state; | |
86 | try { |
|
86 | try { |
General Comments 0
You need to be logged in to leave comments.
Login now