looks like the implementation of tree did change with newer xulrunner builds
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 9 Aug 2006 17:30:54 +0000 (17:30 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 9 Aug 2006 17:30:54 +0000 (17:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5407 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/list.js

index 488ed34..fbe7536 100644 (file)
@@ -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() {