Commit af965c7c authored by olau@iola.dk's avatar olau@iola.dk

More robust argument parsing


git-svn-id: https://flot.googlecode.com/svn/trunk@193 1e0a6537-2640-0410-bfb7-f154510ff394
parent 7331dc2f
......@@ -140,6 +140,9 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
}
plot.zoomOut = function (args) {
if (!args)
args = {};
if (!args.amount)
args.amount = plot.getOptions().zoom.amount
......@@ -148,6 +151,9 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
}
plot.zoom = function (args) {
if (!args)
args = {};
var axes = plot.getAxes(),
options = plot.getOptions(),
c = args.center,
......
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