Skip to content

Commit

Permalink
Fixed missing condition and .rawValue from a previous change on serve…
Browse files Browse the repository at this point in the history
…rside

template query.
  • Loading branch information
Joscha Rohmann committed Nov 14, 2015
1 parent 6e96796 commit 55d9a33
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 55d9a33

Please sign in to comment.