parent
cb84cbf545
commit
33c7f74cb9
|
@ -4,7 +4,7 @@ import {isPresent} from '../../src/facade/lang';
|
|||
|
||||
export class XHRImpl extends XHR {
|
||||
get(url: string): Promise<string> {
|
||||
var completer: PromiseCompleter < string >= PromiseWrapper.completer();
|
||||
var completer: PromiseCompleter <string> = PromiseWrapper.completer();
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', url, true);
|
||||
xhr.responseType = 'text';
|
||||
|
|
Loading…
Reference in New Issue