From: Dan Vanderkam Date: Wed, 25 Jul 2012 17:06:09 +0000 (-0400) Subject: make test not fail X-Git-Tag: v1.0.0~213^2~3 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8458f3530c0fbcc35f5ffbea6e2a74413d1804dd;p=dygraphs.git make test not fail --- diff --git a/dashed-canvas.js b/dashed-canvas.js index af2470e..d8ebac0 100644 --- a/dashed-canvas.js +++ b/dashed-canvas.js @@ -161,3 +161,13 @@ CanvasRenderingContext2D.prototype.installPattern = function(pattern) { segments = []; }; }; + +/** + * Removes the previously-installed pattern. + * You must call installPattern() before calling this. You can install at most + * one pattern at a time--there is no pattern stack. + */ +CanvasRenderingContext2D.prototype.uninstallPattern = function() { + // This will be replaced by a non-error version when a pattern is installed. + throw "Must install a line pattern before uninstalling it."; +}