fix(components): add a mode agnostic css class (#9133)

Fixes #8545
This commit is contained in:
Alan
2016-11-14 13:50:01 -05:00
committed by Brandy Carney
parent d3ef28d3ec
commit 025c5cc646
30 changed files with 148 additions and 186 deletions

View File

@ -45,7 +45,7 @@ export class RangeKnob implements OnInit {
@Input() upper: boolean;
constructor(@Inject(forwardRef(() => Range)) public range: Range) {}
constructor( @Inject(forwardRef(() => Range)) public range: Range) { }
get ratio(): number {
return this._ratio;
@ -229,7 +229,7 @@ export class Range extends Ion implements AfterViewInit, ControlValueAccessor, O
*/
@Input()
set color(val: string) {
this._setColor('range', val);
this._setColor(val);
}
/**
@ -237,7 +237,7 @@ export class Range extends Ion implements AfterViewInit, ControlValueAccessor, O
*/
@Input()
set mode(val: string) {
this._setMode('range', val);
this._setMode(val);
}
@ViewChild('bar') public _bar: ElementRef;
@ -350,9 +350,7 @@ export class Range extends Ion implements AfterViewInit, ControlValueAccessor, O
elementRef: ElementRef,
renderer: Renderer
) {
super(config, elementRef, renderer);
this.mode = config.get('mode');
super(config, elementRef, renderer, 'range');
_form.register(this);
if (_item) {
@ -700,7 +698,7 @@ export class Range extends Ion implements AfterViewInit, ControlValueAccessor, O
/**
* @private
*/
onTouched() {}
onTouched() { }
/**
* @private