mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bring over more trunk fixes.
This commit is contained in:
parent
b858b327c5
commit
696cbde729
@ -215,7 +215,7 @@
|
||||
<![CDATA[
|
||||
const tabs = this.childNodes;
|
||||
for (var i = 0; i < tabs.length; i++) {
|
||||
if (tabs.selected)
|
||||
if (tabs[i].selected)
|
||||
return i;
|
||||
}
|
||||
// throw an exception when no tab is selected (we shouldn't get here)
|
||||
@ -482,14 +482,7 @@
|
||||
<handlers>
|
||||
<handler event="click" button="0">
|
||||
<![CDATA[
|
||||
var tabs = this.parentNode;
|
||||
do {
|
||||
if (tabs.localName == "tabs")
|
||||
break;
|
||||
tabs = tabs.parentNode;
|
||||
} while(tabs.localName != "tabbox");
|
||||
tabs.selectedItem = this;
|
||||
if (!this.selected) this.selected = true;
|
||||
this.parentNode.selectedItem = this;
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user