refactor(facade): remove DateWrapper (#12027)

This commit is contained in:
Alex Eagle
2016-10-02 14:12:14 -07:00
committed by Chuck Jazdzewski
parent c3c9ecb302
commit decd129a4d
13 changed files with 24 additions and 49 deletions

View File

@ -9,7 +9,7 @@
import {Injectable, Type} from '@angular/core';
import {EventEmitter} from '../../facade/async';
import {DateWrapper, StringWrapper, isPresent, print, stringify} from '../../facade/lang';
import {StringWrapper, isPresent, print, stringify} from '../../facade/lang';
import {MessageBus} from './message_bus';
import {Serializer} from './serializer';
@ -71,7 +71,7 @@ export class ClientMessageBroker_ extends ClientMessageBroker {
}
private _generateMessageId(name: string): string {
var time: string = stringify(DateWrapper.toMillis(DateWrapper.now()));
var time: string = stringify(new Date().getTime());
var iteration: number = 0;
var id: string = name + time + stringify(iteration);
while (isPresent((this as any /** TODO #9100 */)._pending[id])) {