JSCS: Remove Illegal spaces

pull/1/head
Nick Schonning 12 years ago
parent e40c0c5ba1
commit 20d8194b1f

@ -1301,7 +1301,7 @@ Licensed under the MIT license.
for (i = 0; i < series.length; ++i) { for (i = 0; i < series.length; ++i) {
s = series[i]; s = series[i];
s.datapoints = { points: [] }; 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 // first pass: clean and copy data
@ -1401,7 +1401,7 @@ Licensed under the MIT license.
for (i = 0; i < series.length; ++i) { for (i = 0; i < series.length; ++i) {
s = series[i]; s = series[i];
executeHooks(hooks.processDatapoints, [ s, s.datapoints]); executeHooks(hooks.processDatapoints, [s, s.datapoints]);
} }
// second pass: find datamax/datamin for auto-scaling // 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() { function triggerRedrawOverlay() {

@ -256,7 +256,7 @@ can set the default in the options.
plot.draw(); plot.draw();
if (!args.preventEvent) { 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(); plot.draw();
if (!args.preventEvent) { 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) { function onMouseMove(e) {
if (selection.active) { if (selection.active) {
updateSelection(e); updateSelection(e);
plot.getPlaceholder().trigger("plotselecting", [ getSelection() ]); plot.getPlaceholder().trigger("plotselecting", [getSelection()]);
// prevent the default action if it is a 'touch' action // prevent the default action if it is a 'touch' action
if (selection.touch === true) { if (selection.touch === true) {
@ -161,8 +161,8 @@ The plugin allso adds the following methods to the plot object:
triggerSelectedEvent(); triggerSelectedEvent();
} else { } else {
// this counts as a clear // this counts as a clear
plot.getPlaceholder().trigger("plotunselected", [ ]); plot.getPlaceholder().trigger("plotunselected", []);
plot.getPlaceholder().trigger("plotselecting", [ null ]); plot.getPlaceholder().trigger("plotselecting", [null]);
} }
selection.touch = false; selection.touch = false;
@ -192,11 +192,11 @@ The plugin allso adds the following methods to the plot object:
function triggerSelectedEvent() { function triggerSelectedEvent() {
var r = getSelection(); var r = getSelection();
plot.getPlaceholder().trigger("plotselected", [ r ]); plot.getPlaceholder().trigger("plotselected", [r]);
// backwards-compat stuff, to be removed in future // backwards-compat stuff, to be removed in future
if (r.xaxis && r.yaxis) { 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 }]);
} }
} }

Loading…
Cancel
Save