@@ -11,7 +11,7 @@ import {
1111} from '@angular/core' ;
1212import { coerceBooleanProperty , FocusOriginMonitor , Platform } from '../core' ;
1313import { mixinDisabled , CanDisable } from '../core/common-behaviors/disabled' ;
14- import { IsColorable , mixinColor } from '../core/common-behaviors/color' ;
14+ import { CanColor , mixinColor } from '../core/common-behaviors/color' ;
1515
1616
1717// TODO(kara): Convert attribute selectors to classes when attr maps become available
@@ -73,7 +73,8 @@ export class MdMiniFabCssMatStyler {}
7373
7474// Boilerplate for applying mixins to MdButton.
7575export class MdButtonBase {
76- constructor ( public _renderer : Renderer2 , public _elementRef : ElementRef ) { }
76+ _renderer : Renderer2 ;
77+ _elementRef : ElementRef ;
7778}
7879export const _MdButtonMixinBase = mixinColor ( mixinDisabled ( MdButtonBase ) , true ) ;
7980
@@ -96,7 +97,7 @@ export const _MdButtonMixinBase = mixinColor(mixinDisabled(MdButtonBase), true);
9697 encapsulation : ViewEncapsulation . None ,
9798 changeDetection : ChangeDetectionStrategy . OnPush ,
9899} )
99- export class MdButton extends _MdButtonMixinBase implements OnDestroy , CanDisable , IsColorable {
100+ export class MdButton extends _MdButtonMixinBase implements OnDestroy , CanDisable , CanColor {
100101 /** Whether the button is round. */
101102 _isRoundButton : boolean = this . _hasAttributeWithPrefix ( 'fab' , 'mini-fab' ) ;
102103
@@ -111,11 +112,11 @@ export class MdButton extends _MdButtonMixinBase implements OnDestroy, CanDisabl
111112 get disableRipple ( ) { return this . _disableRipple ; }
112113 set disableRipple ( v ) { this . _disableRipple = coerceBooleanProperty ( v ) ; }
113114
114- constructor ( private _platform : Platform ,
115- private _focusOriginMonitor : FocusOriginMonitor ,
116- renderer : Renderer2 ,
117- elementRef : ElementRef ) {
118- super ( renderer , elementRef ) ;
115+ constructor ( public _renderer : Renderer2 ,
116+ public _elementRef : ElementRef ,
117+ private _platform : Platform ,
118+ private _focusOriginMonitor : FocusOriginMonitor ) {
119+ super ( ) ;
119120 this . _focusOriginMonitor . monitor ( this . _elementRef . nativeElement , this . _renderer , true ) ;
120121 }
121122
@@ -179,7 +180,7 @@ export class MdAnchor extends MdButton {
179180 focusOriginMonitor : FocusOriginMonitor ,
180181 elementRef : ElementRef ,
181182 renderer : Renderer2 ) {
182- super ( platform , focusOriginMonitor , renderer , elementRef ) ;
183+ super ( renderer , elementRef , platform , focusOriginMonitor ) ;
183184 }
184185
185186 /** @docs -private */
0 commit comments