Merged from jqPlot's repository (b233cde)

https://bitbucket.org/cleonello/jqplot/src/b233cdeb2e574e323dacd7e54eb379d20aeb3811/src/excanvas.js