chore(ts2dart): replace List with Array

Closes #3514
This commit is contained in:
Misko Hevery
2015-08-28 11:29:19 -07:00
committed by Miško Hevery
parent 4415855683
commit e916836261
204 changed files with 815 additions and 947 deletions

View File

@ -35,8 +35,8 @@ class RowHeightMode {
encapsulation: ViewEncapsulation.NONE
})
export class MdGridList {
/** List of tiles that are being rendered. */
tiles: List<MdGridTile>;
/** Array of tiles that are being rendered. */
tiles: MdGridTile[];
/** Number of columns being rendered. */
_cols: number;
@ -302,7 +302,7 @@ export class MdGridTile {
*/
class TileCoordinator {
// Tracking array (see class description).
tracker: List<number>;
tracker: number[];
// Index at which the search for the next gap will start.
columnIndex: number;
@ -311,9 +311,9 @@ class TileCoordinator {
rowIndex: number;
// The computed (row, col) position of each tile (the output).
positions: List<Position>;
positions: Position[];
constructor(numColumns: number, tiles: List<MdGridTile>) {
constructor(numColumns: number, tiles: MdGridTile[]) {
this.columnIndex = 0;
this.rowIndex = 0;

View File

@ -59,8 +59,8 @@ export class MdRadioGroup {
/** Dispatcher for coordinating radio unique-selection by name. */
radioDispatcher: MdRadioDispatcher;
/** List of child radio buttons. */
radios_: List<MdRadioButton>;
/** Array of child radio buttons. */
radios_: MdRadioButton[];
activedescendant: any;

View File

@ -1,4 +1,4 @@
import {List, ListWrapper} from 'angular2/src/core/facade/collection';
import {ListWrapper} from 'angular2/src/core/facade/collection';
/**
* Class for radio buttons to coordinate unique selection based on name.
@ -6,7 +6,7 @@ import {List, ListWrapper} from 'angular2/src/core/facade/collection';
*/
export class MdRadioDispatcher {
// TODO(jelbourn): Change this to TypeScript syntax when supported.
listeners_: List<Function>;
listeners_: Function[];
constructor() {
this.listeners_ = [];