@@ -3,26 +3,23 @@ import {
33 Component ,
44 ContentChildren ,
55 Directive ,
6- ElementRef ,
76 EventEmitter ,
87 HostBinding ,
98 Input ,
109 OnInit ,
1110 Optional ,
1211 Output ,
1312 QueryList ,
14- ViewChild ,
1513 ViewEncapsulation ,
1614 forwardRef ,
1715 NgModule ,
1816 ModuleWithProviders ,
1917} from '@angular/core' ;
20- import { CommonModule } from '@angular/common' ;
2118import {
2219 NG_VALUE_ACCESSOR ,
2320 ControlValueAccessor
2421} from '@angular/forms' ;
25- import { BooleanFieldValue , MdRippleModule , MdUniqueSelectionDispatcher } from '../core' ;
22+ import { MdUniqueSelectionDispatcher } from '../core' ;
2623
2724
2825
@@ -261,9 +258,6 @@ export class MdRadioButton implements OnInit {
261258 /** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
262259 @Input ( 'aria-labelledby' ) ariaLabelledby : string ;
263260
264- /** Whether the ripple effect on click should be disabled. */
265- @Input ( ) @BooleanFieldValue ( ) disableRipple : boolean = false ;
266-
267261 /** Whether this radio is disabled. */
268262 private _disabled : boolean ;
269263
@@ -278,7 +272,6 @@ export class MdRadioButton implements OnInit {
278272 change : EventEmitter < MdRadioChange > = new EventEmitter < MdRadioChange > ( ) ;
279273
280274 constructor ( @Optional ( ) radioGroup : MdRadioGroup ,
281- private _elementRef : ElementRef ,
282275 public radioDispatcher : MdUniqueSelectionDispatcher ) {
283276 // Assertions. Ideally these should be stripped out by the compiler.
284277 // TODO(jelbourn): Assert that there's no name binding AND a parent radio group.
@@ -418,19 +411,10 @@ export class MdRadioButton implements OnInit {
418411 this . radioGroup . _touch ( ) ;
419412 }
420413 }
421-
422- getHostElement ( ) {
423- return this . _elementRef . nativeElement ;
424- }
425-
426- isRippleEnabled ( ) {
427- return ! this . disableRipple ;
428- }
429414}
430415
431416
432417@NgModule ( {
433- imports : [ CommonModule , MdRippleModule ] ,
434418 exports : [ MdRadioGroup , MdRadioButton ] ,
435419 declarations : [ MdRadioGroup , MdRadioButton ] ,
436420} )
0 commit comments