projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00b2159
)
make test not fail
author
Dan Vanderkam
<dan@dygraphs.com>
Wed, 25 Jul 2012 17:06:09 +0000
(13:06 -0400)
committer
Dan Vanderkam
<dan@dygraphs.com>
Wed, 25 Jul 2012 17:06:09 +0000
(13:06 -0400)
dashed-canvas.js
patch
|
blob
|
blame
|
history
diff --git
a/dashed-canvas.js
b/dashed-canvas.js
index
af2470e
..
d8ebac0
100644
(file)
--- 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.";
+}