Commit e42ef3ad authored by Sven Franck's avatar Sven Franck

app: correctly pick dyno to update (...)

parent c3a9fd58
......@@ -6485,11 +6485,14 @@
}
}
} else {
// TODO: can this be done without storing on and querying DOM???
widget = pass.state.gadget.querySelector("[data-update]")
wrapper.property_dict.map_children = widget.getAttribute("data-map");
// TODO: can this be done without storing on and querying DOM???!!!
// TODO: THIS MAKES ME INSANE... qsa || widget does not work!
widget = pass.state.gadget;
widget_dyno = widget.querySelector("[data-update]") || widget.getElementsByTagName("form")[0];
wrapper.property_dict.map_children = widget_dyno.getAttribute("data-map");
wrapper = util.mergeObject(
factory.widget[widget.getAttribute("data-widget")](wrapper.property_dict),
factory.widget[widget_dyno.getAttribute("data-widget")](wrapper.property_dict),
wrapper
);
......
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