Skip to content

Commit

Permalink
Fix leaked global variable 'it'
Browse files Browse the repository at this point in the history
  • Loading branch information
L8D committed Dec 5, 2017
1 parent fa3e5ce commit 3311bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartesian.js
Expand Up @@ -56,7 +56,7 @@ function expand(expr) {
res = [{}]
for(var name in expr) {
// find the property descriptor, even if it is in a base class
for(it = expr; it != null; it = it.__proto__) {
for(var it = expr; it != null; it = it.__proto__) {
var desc = Object.getOwnPropertyDescriptor(it, name)
if(desc != undefined) break
}
Expand Down

0 comments on commit 3311bba

Please sign in to comment.