Skip to content

Commit

Permalink
Fixed bug in new Expression.NodeWise rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joscha Rohmann committed Nov 3, 2015
1 parent 0339a96 commit a43764d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/query/Expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ define([

if (length == 1) {
if (nodeWise) {
value[0] = Expression.Execute(context, elementData, expression[0], expression, type);
lastNodeIndex = expression.nodeLength;
tempValue = Expression.Execute(context, elementData, expression[0], expression, type);

if ((expression.nodeLength - lastNodeIndex) == 2) {
value[expression.nodeLength - 2] = null;
}
value[expression.nodeLength - 1] = tempValue;
} else {
value = Expression.Execute(context, elementData, expression[0], expression, type);
}
Expand Down

0 comments on commit a43764d

Please sign in to comment.