Closed ffflabs closed 7 years ago
@mclaeysb
In line https://github.com/mclaeysb/simplepolygon/blob/23030c354ed3cc550bb0f1caec92a95d88842695/index.js#L105
Variable allIsectsAsIsectRbushTreeItem isn't declared as var, let or const.
allIsectsAsIsectRbushTreeItem
var
let
const
In some environments this amounts for the variable becoming global. Linters complain about it being undeclared, and QUnit doesn't pass tests if
QUnit.config.noglobals = true; config option is used.
QUnit.config.noglobals = true;
Do you think you could declare this variable without side effects?
Yes, we could. Please submit a PR, I'll happily accept it!
I've created it #15
Solved by #15, closing!
@mclaeysb
In line https://github.com/mclaeysb/simplepolygon/blob/23030c354ed3cc550bb0f1caec92a95d88842695/index.js#L105
Variable
allIsectsAsIsectRbushTreeItem
isn't declared asvar
,let
orconst
.In some environments this amounts for the variable becoming global. Linters complain about it being undeclared, and QUnit doesn't pass tests if
QUnit.config.noglobals = true;
config option is used.Do you think you could declare this variable without side effects?