Fix leaked global.

This commit is contained in:
Jürg Lehni 2016-06-13 12:13:42 +02:00
parent 8da82fed19
commit fbe787dc4d

View file

@ -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++) {