Skip to content

Commit

Permalink
Fix removing deleted passes
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Sep 10, 2018
1 parent b15a1ac commit 513e867
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,11 @@ Line2D.prototype.update = function (options) {
}

// remove null items
this.passes = this.passes.filter(Boolean)
let passes = []
for (let i = 0; i < this.passes.length; i++) {
if (this.passes[i] !== null) passes.push(this.passes[i])
}
this.passes = passes

return this
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"earcut": "^2.1.1",
"es6-weak-map": "^2.0.2",
"flatten-vertex-data": "^1.0.0",
"glslify": "^6.1.0",
"glslify": "^6.3.1",
"object-assign": "^4.1.1",
"parse-rect": "^1.2.0",
"pick-by-alias": "^1.1.0",
Expand Down

0 comments on commit 513e867

Please sign in to comment.