File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ dragElement.unhoverRaw = unhover.raw;
8282dragElement . init = function init ( options ) {
8383 var gd = options . gd ;
8484 var numClicks = 1 ;
85- var DBLCLICKDELAY = gd . _context . doubleClickDelay ? gd . _context . doubleClickDelay : interactConstants . DBLCLICKDELAY ;
85+ var DBLCLICKDELAY = ( gd . _context && gd . _context . doubleClickDelay ) ? gd . _context . doubleClickDelay : interactConstants . DBLCLICKDELAY ;
8686 var element = options . element ;
8787
8888 var startX ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ var DBLCLICKDELAY = interactConstants.DBLCLICKDELAY;
3636module . exports = function draw ( gd ) {
3737 var fullLayout = gd . _fullLayout ;
3838 var clipId = 'legend' + fullLayout . _uid ;
39- DBLCLICKDELAY = gd . _context . doubleClickDelay ? gd . _context . doubleClickDelay : DBLCLICKDELAY ;
39+ DBLCLICKDELAY = ( gd . _context && gd . _context . doubleClickDelay ) ? gd . _context . doubleClickDelay : DBLCLICKDELAY ;
4040
4141 if ( ! fullLayout . _infolayer || ! gd . calcdata ) return ;
4242
You can’t perform that action at this time.
0 commit comments