diff --git a/www/common/treesome.js b/www/common/treesome.js index 08743b1c7..6fd504a56 100644 --- a/www/common/treesome.js +++ b/www/common/treesome.js @@ -89,6 +89,7 @@ define([], function () { var indexOfNode = tree.indexOfNode = function (el) { if (!(el && el.parentNode)) { console.log("No parentNode found!"); + throw new Error('No parentNode found!'); } return Array.prototype.indexOf.call(el.parentNode.childNodes, el); };