Skip to content

Commit

Permalink
defer the feature right-click menu generation a bit longer
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Nov 16, 2012
1 parent 81dbb72 commit 950a153
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/JBrowse/View/Track/HTMLFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ HTMLFeatures = declare( HTMLFeatures,

// render the popup menu if configured
if( this.config.menuTemplate ) {
window.setTimeout( dojo.hitch( this, '_connectMenus', featDiv ), 50 );
window.setTimeout( dojo.hitch( this, '_connectMenus', featDiv ), 50+Math.random()*150 );
}

if ( typeof this.config.hooks.modify == 'function' ) {
Expand Down Expand Up @@ -966,7 +966,6 @@ HTMLFeatures = declare( HTMLFeatures,
on( featDiv, 'mouseover', refreshMenu );
if( featDiv.labelDiv )
on( featDiv.labelDiv, 'mouseover', refreshMenu );
dojo.connect( featDiv.contextMenu, 'onMouseMove', refreshMenu );
},

_refreshMenu: function( featDiv ) {
Expand Down

0 comments on commit 950a153

Please sign in to comment.