fix(core): Fix type error

Ensure that values passed to `DomRenderer#setElementAttribute` are
strings. Currently, booleans can be passed to this method, resulting in
failures when running in Dart checked mode.
This commit is contained in:
Tim Blasi 2015-08-28 14:55:12 -07:00
parent 46dd5fcbb0
commit 6c3c6060a5
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export class AppView implements ChangeDispatcher, RenderEventDispatcher {
if (b.isElementProperty()) {
this.renderer.setElementProperty(elementRef, b.name, currentValue);
} else if (b.isElementAttribute()) {
this.renderer.setElementAttribute(elementRef, b.name, currentValue);
this.renderer.setElementAttribute(elementRef, b.name, `${currentValue}`);
} else if (b.isElementClass()) {
this.renderer.setElementClass(elementRef, b.name, currentValue);
} else if (b.isElementStyle()) {