Commit 4c0a2a49 authored by olau@iola.dk's avatar olau@iola.dk

Fix blunder in recent backwards compat fix, patch by adrianyee

git-svn-id: https://flot.googlecode.com/svn/trunk@296 1e0a6537-2640-0410-bfb7-f154510ff394
parent 2bb9c579
...@@ -262,11 +262,11 @@ ...@@ -262,11 +262,11 @@
if (options.yaxis.noTicks && options.yaxis.ticks == null) if (options.yaxis.noTicks && options.yaxis.ticks == null)
options.yaxis.ticks = options.yaxis.noTicks; options.yaxis.ticks = options.yaxis.noTicks;
if (options.x2axis) { if (options.x2axis) {
options.xaxes[1] = $.extend(true, options.x2axis, options.xaxis); options.xaxes[1] = $.extend(true, {}, options.xaxis, options.x2axis);
options.xaxes[1].position = "top"; options.xaxes[1].position = "top";
} }
if (options.y2axis) { if (options.y2axis) {
options.yaxes[1] = $.extend(true, options.y2axis, options.yaxis); options.yaxes[1] = $.extend(true, {}, options.yaxis, options.y2axis);
options.yaxes[1].position = "right"; options.yaxes[1].position = "right";
} }
if (options.grid.coloredAreas) if (options.grid.coloredAreas)
......
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