From e7ec0821b19ebbfae80a4b5899bb31cdaa029d35 Mon Sep 17 00:00:00 2001 From: gimpycoder Date: Tue, 23 Dec 2014 02:19:37 -0700 Subject: [PATCH] fixed clear marker functionality - first marker now clears --- player/js/gametree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +};