Skip to content

Commit

Permalink
Merge pull request #115 from Kanaye/template-fix-v2
Browse files Browse the repository at this point in the history
Fixed the serverside template-data-query I broke in a previous change.
  • Loading branch information
astoilkov committed Nov 14, 2015
2 parents ac8190d + 55d9a33 commit 9bd1f1d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/node/overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,14 @@ define([
};

blocks.queries.template.preprocess = function (domQuery, html, value) {
if (VirtualElement.Is(html)) {
html = html.html();
} else if (blocks.isObject(html)) {
html = GLOBAL[html.rawValue] && GLOBAL[html.rawValue].html();
if (blocks.isObject(html)) {
if (VirtualElement.Is(html.rawValue)) {
html = html.rawValue.html();
} else {
html = GLOBAL[html.rawValue] && GLOBAL[html.rawValue].html();
}
}

if (blocks.isObject(value) && value.parameterName) {
value = value.rawValue;
}
Expand Down

0 comments on commit 9bd1f1d

Please sign in to comment.