bugfix
This commit is contained in:
parent
87f99b35dd
commit
5d7dc25a2b
@ -45,9 +45,11 @@ bricks.Wterm = class extends bricks.JsWidget {
|
||||
destroy(){
|
||||
console.debug('------domoff event, destory this widget');
|
||||
try {
|
||||
this.unbind('element_resize', this.term_resize.bind(this))
|
||||
this.heartbeat_task.cancel();
|
||||
this.heartbeat_task = null;
|
||||
if (this.heartbeat_task){
|
||||
this.heartbeat_task.cancel();
|
||||
this.heartbeat_task = null;
|
||||
}
|
||||
this.unbind('element_resize', this.term_resize.bind(this))
|
||||
} catch(e) {
|
||||
console.log('error ', e);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user