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

Throw error when flot.time plugin is missing.
pull/1/head
David Schnur 14 years ago
commit 65b05c6e2f

@ -1223,6 +1223,9 @@
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))
axis.tickFormatter = function (v, axis) { return "" + opts.tickFormatter(v, axis); };

Loading…
Cancel
Save