Skip to content

Commit

Permalink
refactor(option): update to new renderer (angular#4243)
Browse files Browse the repository at this point in the history
  • Loading branch information
kara authored Apr 24, 2017
1 parent bfdef8e commit 14b330e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/core/option/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
Output,
NgModule,
ModuleWithProviders,
Renderer,
ViewEncapsulation,
Inject,
Optional,
Expand Down Expand Up @@ -84,7 +83,6 @@ export class MdOption {

constructor(
private _element: ElementRef,
private _renderer: Renderer,
@Optional() @Inject(MATERIAL_COMPATIBILITY_MODE) public _isCompatibilityMode: boolean) {}

/**
Expand Down Expand Up @@ -120,7 +118,7 @@ export class MdOption {

/** Sets focus onto this option. */
focus(): void {
this._renderer.invokeElementMethod(this._getHostElement(), 'focus');
this._getHostElement().focus();
}

/**
Expand Down

0 comments on commit 14b330e

Please sign in to comment.