зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1424672 - stop removing the header in the recently closed places views, r=mak,Paolo
MozReview-Commit-ID: J5HlyA8nxe2 --HG-- extra : rebase_source : c153742eb5e5179f5af917a1ad1b73e5c381e06d
This commit is contained in:
Родитель
3a6045f260
Коммит
a18c8b5531
|
@ -238,8 +238,13 @@ PlacesViewBase.prototype = {
|
|||
},
|
||||
|
||||
clearAllContents(aPopup) {
|
||||
while (aPopup.firstChild) {
|
||||
aPopup.firstChild.remove();
|
||||
let kid = aPopup.firstChild;
|
||||
while (kid) {
|
||||
let next = kid.nextSibling;
|
||||
if (!kid.classList.contains("panel-header")) {
|
||||
kid.remove();
|
||||
}
|
||||
kid = next;
|
||||
}
|
||||
aPopup._emptyMenuitem = aPopup._startMarker = aPopup._endMarker = null;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче