fixes for FF52
This commit is contained in:
parent
102d0a45c8
commit
825fd00a80
|
@ -423,7 +423,7 @@
|
||||||
if (sort && sortStyleMap()) {
|
if (sort && sortStyleMap()) {
|
||||||
sortStyleElements();
|
sortStyleElements();
|
||||||
}
|
}
|
||||||
if (!observing && ROOT) {
|
if (!observing && ROOT && docRootObserver) {
|
||||||
docRootObserver.observe(ROOT, {childList: true});
|
docRootObserver.observe(ROOT, {childList: true});
|
||||||
observing = true;
|
observing = true;
|
||||||
}
|
}
|
||||||
|
@ -494,7 +494,7 @@
|
||||||
}
|
}
|
||||||
if (sorting) {
|
if (sorting) {
|
||||||
sorting = false;
|
sorting = false;
|
||||||
docRootObserver.takeRecords();
|
if (docRootObserver) docRootObserver.takeRecords();
|
||||||
if (!restorationLimitExceeded()) {
|
if (!restorationLimitExceeded()) {
|
||||||
start();
|
start();
|
||||||
} else {
|
} else {
|
||||||
|
@ -515,7 +515,7 @@
|
||||||
function moveAfter(el, expected) {
|
function moveAfter(el, expected) {
|
||||||
if (!sorting) {
|
if (!sorting) {
|
||||||
sorting = true;
|
sorting = true;
|
||||||
docRootObserver.stop();
|
if (docRootObserver) docRootObserver.stop();
|
||||||
}
|
}
|
||||||
expected.insertAdjacentElement('afterend', el);
|
expected.insertAdjacentElement('afterend', el);
|
||||||
if (el.disabled !== disableAll) {
|
if (el.disabled !== disableAll) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user