Permalink
Browse files

Variables weren't being resolved when given as element attribute values.

  • Loading branch information...
1 parent 55ba8ef commit 7e4b67f046ab176d41009a506e2cb1ec33da5c81 @insin committed Aug 10, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/DOMBuilder.template.js
@@ -583,7 +583,11 @@ ElementNode.prototype.renderAttributes = function(context) {
result = flatten(result).join('');
}
attributes[name] = result;
- } else {
+ }
+ else if (attr instanceof Variable) {
+ attributes[name] = attr.resolve(context);
+ }
+ else {
attributes[name] = attr;
}
}

0 comments on commit 7e4b67f

Please sign in to comment.