From fbe787dc4df4e9c832513aa177d1c478b01a3c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 13 Jun 2016 12:13:42 +0200 Subject: [PATCH] Fix leaked global. --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index 1d7d4d3c..517720b8 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -828,7 +828,7 @@ var Path = PathItem.extend(/** @lends Path# */{ if (!cached || area == null) { var segments = this._segments, count = segments.length, - closed = cached ? this._closed : _closed; + closed = cached ? this._closed : _closed, last = count - 1; area = 0; for (var i = 0, l = closed ? count : last; i < l; i++) {