fix(BrowserAdapter): correctly removes styles on IE

fixes #7916
This commit is contained in:
Victor Berchet
2016-09-27 17:57:26 -07:00
committed by Chuck Jazdzewski
parent ea6defcf11
commit 2c3825f2c8
2 changed files with 6 additions and 2 deletions

View File

@ -67,7 +67,7 @@ export class NgStyle implements DoCheck {
private _setStyle(nameAndUnit: string, value: string): void {
const [name, unit] = nameAndUnit.split('.');
value = value !== null && value !== void(0) && unit ? `${value}${unit}` : value;
value = value && unit ? `${value}${unit}` : value;
this._renderer.setElementStyle(this._ngEl.nativeElement, name, value);
}