Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cupidi committed Sep 13, 2017
1 parent cbb3d1b commit 19c54be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/lib/api/ext/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export class ClassDirective extends BaseFxDirective

this._ngClassAdapter = new BaseFxDirectiveAdapter('ngClass', monitor, _ngEl, _renderer);
this._classAdapter = new BaseFxDirectiveAdapter('class', monitor, _ngEl, _renderer);
this._classAdapter.cacheInput('class', isBrowser() ? _ngEl.nativeElement.getAttribute('class') || '' : '');
const classValue = isBrowser() ? _ngEl.nativeElement.getAttribute('class') || '' : '';
this._classAdapter.cacheInput('class', classValue);

// Create an instance NgClass Directive instance only if `ngClass=""` has NOT been defined on
// the same host element; since the responsive variations may be defined...
Expand Down
3 changes: 2 additions & 1 deletion src/lib/api/ext/img-src.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export class ImgSrcDirective extends BaseFxDirective implements OnInit, OnChange

constructor(elRef: ElementRef, renderer: Renderer2, monitor: MediaMonitor) {
super(monitor, elRef, renderer);
this._cacheInput('src', isBrowser() ? elRef.nativeElement.getAttribute('src') || '' : '');
const srcValue = isBrowser() ? elRef.nativeElement.getAttribute('src') || '' : '';
this._cacheInput('src', srcValue);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/lib/api/ext/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export class StyleDirective extends BaseFxDirective

// Build adapter, `cacheInput()` interceptor, and get current inline style if any
this._buildAdapter(this.monitor, _ngEl, _renderer);
this._base.cacheInput('style', isBrowser() ? _ngEl.nativeElement.getAttribute('style') || '' : '', true);
const styleValue = isBrowser() ? _ngEl.nativeElement.getAttribute('style') || '' : '';
this._base.cacheInput('style', styleValue, true);

// Create an instance NgStyle Directive instance only if `ngStyle=""` has NOT been defined on
// the same host element; since the responsive versions may be defined...
Expand Down

0 comments on commit 19c54be

Please sign in to comment.