diff --git a/player/js/gametree.js b/player/js/gametree.js index bd9510c..9d59d3f 100644 --- a/player/js/gametree.js +++ b/player/js/gametree.js @@ -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]; } } @@ -346,4 +346,4 @@ eidogo.GameCursor.prototype = { while (cur.previous()) {}; return cur.node; } -}; \ No newline at end of file +};