jumjum123/JUMFlot — pull request #1 by thgreasi (2013-04-10 21:12:05+00:00)
Title: Fixed bug with flot.resize & improved heavy plots

Prettified & JSLinted the code.
Fixed a bug with 'flot.resize' in which if the resize occurred before the end of 'grow' animation, the animation of the plot would continue far beyond the max height of the canvas.

Shortlog:
-- Changed setInterval with recursive setTimeout measuring the timediff
(Helps with plots that each redraw takes more time than the Interval,
and should also make easier to implement requestAnimationFrame in near future).
-- Changed function name growing to growingLoop
(JSLint suggested and also was required for the setTimeout implementation).
-- If the 'resize' plugin is available and a 'resize' occurs before the end of
the 'grow' animation, then the animation is halted and the plot is
immediately redrawn to its final state.
(added binding and unbinding of 'resize' event in processbindEvents and shutdown).