' +
@@ -201,11 +201,9 @@ export class RadioButton extends Ion {
constructor(
@Host() @Optional() group: RadioGroup,
elementRef: ElementRef,
- config: Config,
- renderer: Renderer
+ config: Config
) {
super(elementRef, config);
- renderer.setElementClass(elementRef, 'item', true);
this.group = group;
this.tabIndex = 0;
diff --git a/ionic/components/switch/switch.ts b/ionic/components/switch/switch.ts
index 36ed79f25f..740b6cadec 100644
--- a/ionic/components/switch/switch.ts
+++ b/ionic/components/switch/switch.ts
@@ -1,4 +1,4 @@
-import {Component, Directive, ElementRef, Renderer, Host, Optional, NgControl, Inject, forwardRef} from 'angular2/angular2';
+import {Component, Directive, ElementRef, Host, Optional, NgControl, Inject, forwardRef} from 'angular2/angular2';
import {Form} from '../../util/form';
import {Config} from '../../config/config';
@@ -83,7 +83,8 @@ class MediaSwitch {
'(touchstart)': 'pointerDown($event)',
'(mousedown)': 'pointerDown($event)',
'(touchend)': 'pointerUp($event)',
- '(mouseup)': 'pointerUp($event)'
+ '(mouseup)': 'pointerUp($event)',
+ 'class': 'item'
},
template:
'
' +
@@ -108,14 +109,11 @@ export class Switch {
form: Form,
elementRef: ElementRef,
config: Config,
- renderer: Renderer,
@Optional() private ngControl: NgControl
) {
this.form = form;
form.register(this);
- renderer.setElementClass(elementRef, 'item', true);
-
this.lastTouch = 0;
this.mode = config.get('mode');
diff --git a/ionic/components/text-input/text-input.ts b/ionic/components/text-input/text-input.ts
index ec17c5626e..a8fcfe8799 100644
--- a/ionic/components/text-input/text-input.ts
+++ b/ionic/components/text-input/text-input.ts
@@ -17,7 +17,8 @@ import {Platform} from '../../platform/platform';
host: {
'(touchstart)': 'pointerStart($event)',
'(touchend)': 'pointerEnd($event)',
- '(mouseup)': 'pointerEnd($event)'
+ '(mouseup)': 'pointerEnd($event)',
+ 'class': 'item'
},
template:
'
' +
@@ -37,7 +38,6 @@ export class TextInput {
platform: Platform,
@Optional() @Host() scrollView: Content
) {
- renderer.setElementClass(elementRef, 'item', true);
this.renderer = renderer;
this.form = form;
diff --git a/ionic/components/toolbar/toolbar.ts b/ionic/components/toolbar/toolbar.ts
index 0ac708a463..4ced7355c5 100644
--- a/ionic/components/toolbar/toolbar.ts
+++ b/ionic/components/toolbar/toolbar.ts
@@ -1,4 +1,4 @@
-import {Component, Directive, Host, ElementRef, Renderer, Optional, forwardRef, Inject} from 'angular2/angular2';
+import {Component, Directive, Host, ElementRef, Optional, forwardRef, Inject} from 'angular2/angular2';
import {Ion} from '../ion';
import {Config} from '../../config/config';
@@ -64,16 +64,17 @@ export class ToolbarBase extends Ion {
'' +
'' +
'' +
- ''
+ '',
+ host: {
+ 'class': 'toolbar'
+ }
})
export class Toolbar extends ToolbarBase {
constructor(
elementRef: ElementRef,
- config: Config,
- renderer: Renderer
+ config: Config
) {
super(elementRef, config);
- renderer.setElementClass(elementRef, 'toolbar', true);
}
}