bugfix
This commit is contained in:
parent
3c3c1e1050
commit
bd8d4faf18
@ -543,7 +543,7 @@ bricks.Tooltip = class extends bricks.Text {
|
|||||||
this.set_style('display', 'block');
|
this.set_style('display', 'block');
|
||||||
bricks.relocate_by_eventpos(event, this);
|
bricks.relocate_by_eventpos(event, this);
|
||||||
if (this.auto_task){
|
if (this.auto_task){
|
||||||
this.auto_task.cancel();
|
clearTimeout(this.auto_task);
|
||||||
this.auto_task = null;
|
this.auto_task = null;
|
||||||
}
|
}
|
||||||
this.auto_task = schedule_once(this.hide.bind(this), 6);
|
this.auto_task = schedule_once(this.hide.bind(this), 6);
|
||||||
@ -551,7 +551,7 @@ bricks.Tooltip = class extends bricks.Text {
|
|||||||
hide(){
|
hide(){
|
||||||
try {
|
try {
|
||||||
if (this.auto_task){
|
if (this.auto_task){
|
||||||
this.auto_task.cancel();
|
clearTimeout(this.auto_task);
|
||||||
this.auto_task = null;
|
this.auto_task = null;
|
||||||
}
|
}
|
||||||
} catch(e){
|
} catch(e){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user