Commit 8beb199e authored by yaelelmatad's avatar yaelelmatad

Edited request for Ticket 709, Deprecation Mesg

We changed the === to == and removed the typeof operator.  We also changed the tabs to spaces.
parent 4e5c800c
...@@ -1222,9 +1222,9 @@ ...@@ -1222,9 +1222,9 @@
return v.toFixed(axis.tickDecimals); return v.toFixed(axis.tickDecimals);
}; };
} }
else if (opts.mode === "time" && typeof axis.tickGenerator === "undefined") { else if (opts.mode == "time" && axis.tickGenerator == undefined) {
throw new Error("Time mode requires the flot.time plugin."); 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