Commit 65b05c6e authored by David Schnur's avatar David Schnur

Merge pull request #55 from yaelelmatad/issue-709-deprecation-msg

Throw error when flot.time plugin is missing.
parents ca372620 8beb199e
...@@ -1223,6 +1223,9 @@ ...@@ -1223,6 +1223,9 @@
return "" + Math.round(v * factor) / factor; return "" + Math.round(v * factor) / factor;
}; };
} }
else if (opts.mode == "time" && axis.tickGenerator == undefined) {
throw new Error("Time mode requires the flot.time plugin.");
}
if ($.isFunction(opts.tickFormatter)) if ($.isFunction(opts.tickFormatter))
axis.tickFormatter = function (v, axis) { return "" + opts.tickFormatter(v, axis); }; axis.tickFormatter = function (v, axis) { return "" + opts.tickFormatter(v, axis); };
......
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