mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix leaked global.
This commit is contained in:
parent
8da82fed19
commit
fbe787dc4d
1 changed files with 1 additions and 1 deletions
|
@ -828,7 +828,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
||||||
if (!cached || area == null) {
|
if (!cached || area == null) {
|
||||||
var segments = this._segments,
|
var segments = this._segments,
|
||||||
count = segments.length,
|
count = segments.length,
|
||||||
closed = cached ? this._closed : _closed;
|
closed = cached ? this._closed : _closed,
|
||||||
last = count - 1;
|
last = count - 1;
|
||||||
area = 0;
|
area = 0;
|
||||||
for (var i = 0, l = closed ? count : last; i < l; i++) {
|
for (var i = 0, l = closed ? count : last; i < l; i++) {
|
||||||
|
|
Loading…
Reference in a new issue