File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,18 @@ how much info to output:
45
45
var debugLevel = 1 ;
46
46
47
47
function checkDebugEnabled (plot , options ) {
48
- if (options .debug ) {
49
- debugLevel = options .debug ;
50
- plot .hooks .processDatapoints .push (alertSeries);
48
+ if (options .debug ) {
49
+ debugLevel = options .debug ;
50
+ plot .hooks .processDatapoints .push (alertSeries);
51
+ }
51
52
}
52
- }
53
53
54
- function alertSeries (plot , series , datapoints ) {
55
- var msg = " series " + series .label ;
56
- if (debugLevel > 1 ) {
57
- msg += " with " + series .data .length + " points" ;
58
- alert (msg);
54
+ function alertSeries (plot , series , datapoints ) {
55
+ var msg = " series " + series .label ;
56
+ if (debugLevel > 1 ) {
57
+ msg += " with " + series .data .length + " points" ;
58
+ alert (msg);
59
+ }
59
60
}
60
61
61
62
plot .hooks .processOptions .push (checkDebugEnabled);
You can’t perform that action at this time.
0 commit comments