diff --git a/examples/selection/index.html b/examples/selection/index.html
index 88cc313..6dbf2db 100644
--- a/examples/selection/index.html
+++ b/examples/selection/index.html
@@ -68,13 +68,13 @@
if (zoom) {
$.each(plot.getXAxes(), function(_, axis) {
- var opts = axis.options;
- opts.min = ranges.xaxis.from;
- opts.max = ranges.xaxis.to;
- });
- plot.setupGrid();
- plot.draw();
- plot.clearSelection();
+ var opts = axis.options;
+ opts.min = ranges.xaxis.from;
+ opts.max = ranges.xaxis.to;
+ });
+ plot.setupGrid();
+ plot.draw();
+ plot.clearSelection();
}
});
diff --git a/examples/visitors/index.html b/examples/visitors/index.html
index 182f6aa..614c3ec 100644
--- a/examples/visitors/index.html
+++ b/examples/visitors/index.html
@@ -92,12 +92,11 @@
$("#placeholder").bind("plotselected", function (event, ranges) {
// do the zooming
-
$.each(plot.getXAxes(), function(_, axis) {
- var opts = axis.options;
- opts.min = ranges.xaxis.from;
- opts.max = ranges.xaxis.to;
- });
+ var opts = axis.options;
+ opts.min = ranges.xaxis.from;
+ opts.max = ranges.xaxis.to;
+ });
plot.setupGrid();
plot.draw();
plot.clearSelection();