Commit 734d3961 authored by Boris Kocherov's avatar Boris Kocherov

parent_path optional argument in getJsonPath()

parent 14817efe
...@@ -1830,7 +1830,10 @@ ...@@ -1830,7 +1830,10 @@
.declareMethod('getJsonPath', function (parent_path) { .declareMethod('getJsonPath', function (parent_path) {
return this.parentGetJsonPath(this.element.getAttribute("data-json-parent")) return this.parentGetJsonPath(this.element.getAttribute("data-json-parent"))
.push(function (p) { .push(function (p) {
return p + parent_path; if (parent_path) {
p = p + parent_path;
}
return p;
}); });
}) })
......
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