diff --git a/jquery.flot.js b/jquery.flot.js index 86b7165..054d2ab 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -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() { diff --git a/jquery.flot.navigate.js b/jquery.flot.navigate.js index 4dc9467..cc39cdc 100644 --- a/jquery.flot.navigate.js +++ b/jquery.flot.navigate.js @@ -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]); } }; diff --git a/jquery.flot.selection.js b/jquery.flot.selection.js index c3a7342..879f6cf 100644 --- a/jquery.flot.selection.js +++ b/jquery.flot.selection.js @@ -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 }]); } }