diff --git a/jquery.flot.navigate.js b/jquery.flot.navigate.js index 6f66e7a..6b1d99d 100644 --- a/jquery.flot.navigate.js +++ b/jquery.flot.navigate.js @@ -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,