зеркало из https://github.com/mozilla/pjs.git
Bug 397135: tree._ensureColumnOrder dies if no columns are defined; r=gavin, a=sayrer
This commit is contained in:
Родитель
29590b07b2
Коммит
ef36063e1a
|
@ -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>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче