X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dashed-canvas.js;h=cec77298a8441fe6c69daf729e092efd7be32abb;hb=ebf77a9fa6953523975f7ee608a05e1c66c43e47;hp=853d67b8e9b1d39d83035bac8b0cdbc5b9db6a5c;hpb=3bdeeb9b9d123e9e45159a6801b6e7fe74f08690;p=dygraphs.git diff --git a/dashed-canvas.js b/dashed-canvas.js index 853d67b..cec7729 100644 --- a/dashed-canvas.js +++ b/dashed-canvas.js @@ -40,7 +40,7 @@ * property and "uninstallPattern" method to this particular canvas context. * You must call uninstallPattern() before calling installPattern() again. * - * @param {pattern | Array} A description of the stroke pattern. Even + * @param {Array.} pattern A description of the stroke pattern. Even * indices indicate a draw and odd indices indicate a gap (in pixels). The * array should have a even length as any odd lengthed array could be expressed * as a smaller even length array. @@ -65,6 +65,7 @@ CanvasRenderingContext2D.prototype.installPattern = function(pattern) { var realMoveTo = this.moveTo; var realStroke = this.stroke; + /** @type {function()|undefined} */ this.uninstallPattern = function() { this.beginPath = realBeginPath; this.lineTo = realLineTo;