derby-parsing
Advanced tools
Comparing version
@@ -352,3 +352,10 @@ var htmlUtil = require('html-util'); | ||
} | ||
return (isWithin) ? expression : new expressions.ViewParentExpression(expression); | ||
// In the case of within attributes, always use a template, never an | ||
// expression. A within value depends on the rendering context, so we | ||
// cannot get a single value for the attribute and store it on the | ||
// component model when the component is initialized | ||
if (isWithin) return item; | ||
// Create an expression in cases where it is safe to do so. This allows | ||
// derby to get the intended value and store it on the component model | ||
return new expressions.ViewParentExpression(expression); | ||
} | ||
@@ -355,0 +362,0 @@ } |
{ | ||
"name": "derby-parsing", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Add HTML template parsing to Derby", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
102450
0.44%2619
0.27%