rem: if (container.viewCount == 0) 
add: if (container && container.viewCount == 0) 
context: function vmrg_endmm(){    --this.multiMoveDepth;    ASSERT(this.multiMoveDepth >= 0, "mismatched multi move calls: " +           this.multiMoveDepth);        if (!this.multiMoveDepth)    {        // close any empty windows that may have been left open during the        // multi move.        for (var w in this.windows)        {            if (w != VMGR_MAINWINDOW)            {                var window = this.windows[w];                var container =                     window.document.getElementById(VMGR_DEFAULT_CONTAINER);                if (container.viewCount == 0)                    window.close();            }        }        // deal with any single child tab containers too        for (var viewId in this.views)        {            var view = this.views[viewId];            if (view.currentContent)            {                var container = view.currentContent.parentNode;                if (container.getAttribute("type") == "tab" &&                    container.viewCount == 1)                {                    var parentLocation = this.computeLocation(container);                    container.viewCount = 0;                    this.moveView(parentLocation, viewId);                    container.parentNode.removeChild(container);                }            }        }    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/45c353e9aa1e6f3520b887db284ca8c0d9f4389f/view-manager.js/clean/extensions/venkman/resources/content/view-manager.js