Commit f6626c69 authored by Boris Kocherov's avatar Boris Kocherov

fix gadget.getElementByPath()

parent b2b2d283
......@@ -1282,11 +1282,14 @@
}
}
if (scope === false) {
// gadget for this element absent
// so find element in current gadget
return document.getElementById(
g.element.getAttribute("data-gadget-scope") + '/' + key + '/'
g.element.getAttribute("data-gadget-scope") + bingo + key + '/'
);
}
if (scope) {
// get gadget by scope and use relative path for find element in gadget
return g.getDeclaredGadget(scope)
.push(function (gadget) {
return gadget.getElementByPath(next_data_path);
......
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