From: phasefx Date: Wed, 9 Aug 2006 17:30:54 +0000 (+0000) Subject: looks like the implementation of tree did change with newer xulrunner builds X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9379ee29f49647ccc780533bae6a65434fbb16ea;p=evergreen%2Fpines.git looks like the implementation of tree did change with newer xulrunner builds git-svn-id: svn://svn.open-ils.org/ILS/trunk@5407 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index 488ed3466b..fbe7536703 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -355,8 +355,8 @@ util.list.prototype = { }, 'detect_visible' : function() { + var obj = this; try { - var obj = this; //dump('detect_visible obj.node = ' + obj.node + '\n'); /* FIXME - this is a hack.. if the implementation of tree changes, this could break */ var scrollbar = document.getAnonymousNodes( document.getAnonymousNodes(obj.node)[1] )[1]; @@ -368,7 +368,7 @@ util.list.prototype = { obj.curpos = curpos; obj.maxpos = maxpos; } } - } catch(E) { alert(E); } + } catch(E) { obj.error.sdump('D_ERROR',E); } }, 'detect_visible_polling' : function() {