mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Make nsXULElement::GetChildNodes use the same (live) node list that
nsGenericElement uses. Bug 240633, r+sr=jst on the C++ changes, r=neil, sr=jst on the JS changes.
This commit is contained in:
parent
474688325f
commit
d41f5da2d5
@ -184,9 +184,8 @@ JSObjectViewer.prototype =
|
||||
|
||||
emptyTree: function(aTreeKids)
|
||||
{
|
||||
var kids = aTreeKids.childNodes;
|
||||
for (var i = 0; i < kids.length; ++i) {
|
||||
aTreeKids.removeChild(kids[i]);
|
||||
while (aTreeKids.hasChildNodes()) {
|
||||
aTreeKids.removeChild(aTreeKids.lastChild);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user