Skip to content

Commit 68df2de

Browse files
committed
fix example (syntax error and indenting)
1 parent 2cd4f8b commit 68df2de

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

PLUGINS.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,18 @@ how much info to output:
4545
var debugLevel = 1;
4646

4747
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+
}
5152
}
52-
}
5353

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+
}
5960
}
6061

6162
plot.hooks.processOptions.push(checkDebugEnabled);

0 commit comments

Comments
 (0)