remove unused code, add todos, fix minor errors

This commit is contained in:
ansuz
2016-02-12 12:03:15 +01:00
parent 8ba1f5dfc9
commit 2c5a2b6023
3 changed files with 6 additions and 17 deletions

View File

@@ -199,17 +199,5 @@ define([], function () {
} while (node && node !== parent);
};
// FIXME remove
tree.flatten = function (el, ancestor, cursorContainer) {
var list = [];
for (var el = ancestor; el = tree.getNext(next, ancestor);) {
if (cf || el === cursorContainer) {
cf = true;
list.push(el.tagName);
}
}
return list;
};
return tree;
});