Bug 374982 - The enabled state of the copy command is incorrect in few edge cases. r=gavin.

This commit is contained in:
mozilla.mano%sent.com 2007-05-08 00:50:09 +00:00
Родитель a9c00ca3b4
Коммит 8a866e775c
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -44,8 +44,11 @@
<property name="mode">
<getter>return this.mMode;</getter>
<setter><![CDATA[
if (this.mode != val) {
this.mMode = val || "All";
this.setAttribute("mode", this.mMode);
this.selectedItem = null;
}
return val;
]]></setter>
</property>
@ -62,10 +65,12 @@
this.mSelectedItem.removeAttribute("selected");
this.mSelectedItem = val;
if (val)
val.setAttribute("selected", "true");
// Update edit commands
window.updateCommands("focus");
return val;
]]></setter>
</property>
@ -262,6 +267,7 @@
var newRows = this.mConsoleRowBox.cloneNode(false);
this.mConsoleRowBox.parentNode.replaceChild(newRows, this.mConsoleRowBox);
this.mConsoleRowBox = newRows;
this.selectedItem = null;
]]></body>
</method>