Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 595dce6

Browse files
committed
lib: look for _plotCSSLoaded in gd._document not gd.
1 parent c13c7ef commit 595dce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/plotcss_utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var plotcss = require('../../build/plotcss');
1616
exports.injectStyles = function injectStyles(gd) {
1717

1818
// If the graph div has already been styled, bail
19-
if(gd._plotCSSLoaded) return;
19+
if(gd._document._plotCSSLoaded) return;
2020

2121
var targetStyleSheet = null;
2222

@@ -45,7 +45,7 @@ exports.injectStyles = function injectStyles(gd) {
4545
else loggers.warn('injectStyles failed');
4646
}
4747

48-
gd._plotCSSLoaded = true;
48+
gd._document._plotCSSLoaded = true;
4949
};
5050

5151
// expands a plotcss selector

0 commit comments

Comments
 (0)