mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
bug 253607 - Warning: redeclaration of var column, patch by Frank Wein (mcsmurf@gmx.de), r=timeless, sr=neil
This commit is contained in:
parent
8d23023aab
commit
b7110e4bb1
@ -754,16 +754,17 @@
|
||||
|
||||
var tree = col.parentNode.parentNode;
|
||||
var sib;
|
||||
var column;
|
||||
if (col.mTargetCol) {
|
||||
// remove previous insertbefore/after attributes
|
||||
col.mTargetCol.removeAttribute("insertbefore");
|
||||
col.mTargetCol.removeAttribute("insertafter");
|
||||
var column = tree.columns.getColumnFor(col.mTargetCol);
|
||||
column = tree.columns.getColumnFor(col.mTargetCol);
|
||||
tree.treeBoxObject.invalidateColumn(column);
|
||||
sib = col.mTargetCol._previousVisibleColumn;
|
||||
if (sib) {
|
||||
sib.removeAttribute("insertafter");
|
||||
var column = tree.columns.getColumnFor(sib);
|
||||
column = tree.columns.getColumnFor(sib);
|
||||
tree.treeBoxObject.invalidateColumn(column);
|
||||
}
|
||||
col.mTargetCol = null;
|
||||
@ -779,11 +780,11 @@
|
||||
sib = targetCol._previousVisibleColumn;
|
||||
if (sib) {
|
||||
sib.setAttribute("insertafter", "true");
|
||||
var column = tree.columns.getColumnFor(sib);
|
||||
column = tree.columns.getColumnFor(sib);
|
||||
tree.treeBoxObject.invalidateColumn(column);
|
||||
}
|
||||
}
|
||||
var column = tree.columns.getColumnFor(targetCol);
|
||||
column = tree.columns.getColumnFor(targetCol);
|
||||
tree.treeBoxObject.invalidateColumn(column);
|
||||
col.mTargetCol = targetCol;
|
||||
col.mTargetDir = pos.value;
|
||||
|
Loading…
Reference in New Issue
Block a user