Commit 20d8194b authored by Nick Schonning's avatar Nick Schonning

JSCS: Remove Illegal spaces

parent e40c0c5b
......@@ -1301,7 +1301,7 @@ Licensed under the MIT license.
for (i = 0; i < series.length; ++i) {
s = series[i];
s.datapoints = { points: [] };
executeHooks(hooks.processRawData, [ s, s.data, s.datapoints ]);
executeHooks(hooks.processRawData, [s, s.data, s.datapoints]);
}
// first pass: clean and copy data
......@@ -1401,7 +1401,7 @@ Licensed under the MIT license.
for (i = 0; i < series.length; ++i) {
s = series[i];
executeHooks(hooks.processDatapoints, [ s, s.datapoints]);
executeHooks(hooks.processDatapoints, [s, s.datapoints]);
}
// second pass: find datamax/datamin for auto-scaling
......@@ -3385,7 +3385,7 @@ Licensed under the MIT license.
}
}
placeholder.trigger(eventname, [ pos, item ]);
placeholder.trigger(eventname, [pos, item]);
}
function triggerRedrawOverlay() {
......
......@@ -256,7 +256,7 @@ can set the default in the options.
plot.draw();
if (!args.preventEvent) {
plot.getPlaceholder().trigger("plotzoom", [ plot, args ]);
plot.getPlaceholder().trigger("plotzoom", [plot, args]);
}
};
......@@ -308,7 +308,7 @@ can set the default in the options.
plot.draw();
if (!args.preventEvent) {
plot.getPlaceholder().trigger("plotpan", [ plot, args ]);
plot.getPlaceholder().trigger("plotpan", [plot, args]);
}
};
......
......@@ -101,7 +101,7 @@ The plugin allso adds the following methods to the plot object:
function onMouseMove(e) {
if (selection.active) {
updateSelection(e);
plot.getPlaceholder().trigger("plotselecting", [ getSelection() ]);
plot.getPlaceholder().trigger("plotselecting", [getSelection()]);
// prevent the default action if it is a 'touch' action
if (selection.touch === true) {
......@@ -161,8 +161,8 @@ The plugin allso adds the following methods to the plot object:
triggerSelectedEvent();
} else {
// this counts as a clear
plot.getPlaceholder().trigger("plotunselected", [ ]);
plot.getPlaceholder().trigger("plotselecting", [ null ]);
plot.getPlaceholder().trigger("plotunselected", []);
plot.getPlaceholder().trigger("plotselecting", [null]);
}
selection.touch = false;
......@@ -192,11 +192,11 @@ The plugin allso adds the following methods to the plot object:
function triggerSelectedEvent() {
var r = getSelection();
plot.getPlaceholder().trigger("plotselected", [ r ]);
plot.getPlaceholder().trigger("plotselected", [r]);
// backwards-compat stuff, to be removed in future
if (r.xaxis && r.yaxis) {
plot.getPlaceholder().trigger("selected", [ { x1: r.xaxis.from, y1: r.yaxis.from, x2: r.xaxis.to, y2: r.yaxis.to } ]);
plot.getPlaceholder().trigger("selected", [{ x1: r.xaxis.from, y1: r.yaxis.from, x2: r.xaxis.to, y2: r.yaxis.to }]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment