From e4a1e65ea825c03f2009025d63d2e89852353f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Jaunet?= Date: Wed, 21 Aug 2019 11:32:21 +0200 Subject: [PATCH] Update rough.js --- js/rough.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/rough.js b/js/rough.js index 40c3562..4150a59 100644 --- a/js/rough.js +++ b/js/rough.js @@ -337,7 +337,7 @@ var rough = function () { e.push(this.reduce(s, h)) } let s = ""; - for (const t of e) { + for (var t of e) { for (let e = 0; e < t.length; e++) { const i = t[e]; s += 0 === e ? "M" + i[0] + "," + i[1] : "L" + i[0] + "," + i[1] @@ -1142,7 +1142,7 @@ var rough = function () { draw(t) { const e = t.sets || [], s = t.options || this.getDefaultOptions(), i = this.ctx; - for (const t of e) switch (t.type) { + for (var t of e) switch (t.type) { case"path": i.save(), i.strokeStyle = s.stroke, i.lineWidth = s.strokeWidth, this._drawToContext(i, t), i.restore(); break; @@ -1288,7 +1288,7 @@ var rough = function () { draw(t) { const e = t.sets || [], s = t.options || this.getDefaultOptions(), i = this.svg.ownerDocument || window.document, h = i.createElementNS("http://www.w3.org/2000/svg", "g"); - for (const t of e) { + for (var t of e) { let e = null; switch (t.type) { case"path":