Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions player/js/gametree.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ eidogo.GameNode.prototype = {
if (this[prop] instanceof Array) {
this[prop] = this[prop].filter(function(v) { return !test(v); });
if (!this[prop].length) delete this[prop];
} else if (test(this.prop)) {
} else if (test(this[prop])) {
delete this[prop];
}
}
Expand Down Expand Up @@ -346,4 +346,4 @@ eidogo.GameCursor.prototype = {
while (cur.previous()) {};
return cur.node;
}
};
};