refactor(ListWrapper): drop forEach and removeLast

Closes #4584
This commit is contained in:
Victor Berchet
2015-10-07 09:09:43 -07:00
parent 4ed642f921
commit aee176115b
35 changed files with 71 additions and 104 deletions

View File

@ -12,7 +12,6 @@ import {
import {isPresent, StringWrapper, NumberWrapper} from 'angular2/src/core/facade/lang';
import {ObservableWrapper, EventEmitter} from 'angular2/src/core/facade/async';
import {ListWrapper} from 'angular2/src/core/facade/collection';
import {Event, KeyboardEvent} from 'angular2/src/core/facade/browser';
import {MdRadioDispatcher} from 'angular2_material/src/components/radio/radio_dispatcher';
@ -111,7 +110,7 @@ export class MdRadioGroup implements OnChanges {
// child radio buttons and select the one that has a corresponding value (if any).
if (isPresent(this.value) && this.value != '') {
this.radioDispatcher.notify(this.name_);
ListWrapper.forEach(this.radios_, (radio) => {
this.radios_.forEach(radio => {
if (radio.value == this.value) {
radio.checked = true;
this.selectedRadioId = radio.id;