Skip to content

Commit

Permalink
Fixed bug in ElementData.clear()
Browse files Browse the repository at this point in the history
Fixed a bug not removing the expession of obervables when an element got
collected.
  • Loading branch information
Joscha Rohmann committed Nov 30, 2016
1 parent 9b6e157 commit b324a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/ElementsData.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}
}

if (value._expressionKeys[currentData.id]) {
if (value._expressions) {
for (i = 0; i < value._expressions.length; i++) {
if (value._expressions[i].elementId == currentData.id) {
value._expressions.splice(i, 1);
Expand Down

0 comments on commit b324a83

Please sign in to comment.