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;
82
82
dragElement . init = function init ( options ) {
83
83
var gd = options . gd ;
84
84
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 ;
86
86
var element = options . element ;
87
87
88
88
var startX ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ var DBLCLICKDELAY = interactConstants.DBLCLICKDELAY;
36
36
module . exports = function draw ( gd ) {
37
37
var fullLayout = gd . _fullLayout ;
38
38
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 ;
40
40
41
41
if ( ! fullLayout . _infolayer || ! gd . calcdata ) return ;
42
42
You can’t perform that action at this time.
0 commit comments