Commit a5b3d30e authored by Sven Franck's avatar Sven Franck

app: removed while selector to find dyno (too much browser hang ups)

parent a3fe54a4
...@@ -6552,7 +6552,7 @@ ...@@ -6552,7 +6552,7 @@
} }
// only for dynamic content // only for dynamic content
if (!pass.skip) { if (!pass.skip && !quirk_dict.no_content) {
// UPDATES // UPDATES
if (quirk_dict.update) { if (quirk_dict.update) {
selector = pass.state.gadget; selector = pass.state.gadget;
...@@ -6567,8 +6567,11 @@ ...@@ -6567,8 +6567,11 @@
// CREATE // CREATE
} else { } else {
selector = wrapper.fragment.firstElementChild || wrapper.fragment; selector = wrapper.fragment.firstElementChild || wrapper.fragment;
while (util.testForString("dyno", selector.className) === false) { // wrapped dyno
selector = selector.firstChild || selector;
// TODO: find way to dig down into tree
if (util.testForString("dyno", selector.className) === false) {
selector = selector.firstChild;
} }
pass.state.gadget = selector; pass.state.gadget = selector;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment