This commit is contained in:
tamat
2018-12-18 11:12:58 +01:00
parent 7b3fdebdd1
commit 8dce8acb91
3 changed files with 392 additions and 386 deletions

View File

@@ -1533,14 +1533,14 @@ LGraph.prototype.isLive = function()
}
/**
* clears the triggered slot animation in all links
* clears the triggered slot animation in all links (stop visual animation)
* @method clearTriggeredSlots
*/
LGraph.prototype.clearTriggeredSlots = function()
{
for(var i in this.links)
{
var link_info = this.links[k];
var link_info = this.links[i];
if( !link_info )
continue;
if( link_info._last_time )
@@ -8177,6 +8177,9 @@ ContextMenu.prototype.close = function(e, ignore_parent_menu)
}
if(this.current_submenu)
this.current_submenu.close(e, true);
if(this.root.closing_timer)
clearTimeout( this.root.closing_timer );
}
//this code is used to trigger events easily (used in the context menu mouseleave