Bug 397135: tree._ensureColumnOrder dies if no columns are defined; r=gavin, a=sayrer

This commit is contained in:
mnyromyr@tprac.de 2007-10-11 12:50:09 -07:00
parent 45b488ee6b
commit e61846379d

View File

@ -137,7 +137,10 @@
<method name="_ensureColumnOrder">
<body><![CDATA[
if (this._columnsDirty) {
if (!this._columnsDirty)
return;
if (this.columns) {
// update the ordinal position of each column to assure that it is
// an odd number and 2 positions above its next sibling
var cols = [];
@ -152,9 +155,8 @@
var splitters = this.getElementsByTagName("splitter");
for (i = 0; i < splitters.length; ++i)
splitters[i].setAttribute("ordinal", (i+1)*2);
this._columnsDirty = false;
}
this._columnsDirty = false;
]]></body>
</method>