mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Don't set up observer in ShadyDOM
It won't be used
This commit is contained in:
@@ -84,10 +84,12 @@ function takeRecords() {
|
||||
*/
|
||||
export const DirMixin = dedupingMixin((base) => {
|
||||
|
||||
if (!observer) {
|
||||
getRTL();
|
||||
observer = new MutationObserver(updateDirection);
|
||||
observer.observe(document.documentElement, {attributes: true, attributeFilter: ['dir']});
|
||||
if (!SHIM_SHADOW) {
|
||||
if (!observer) {
|
||||
getRTL();
|
||||
observer = new MutationObserver(updateDirection);
|
||||
observer.observe(document.documentElement, {attributes: true, attributeFilter: ['dir']});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user