Skip to content

Commit

Permalink
fix(AjaxObservable): enhance compatibility
Browse files Browse the repository at this point in the history
- fix compatibility issue on esparento
  • Loading branch information
opsb authored and kwonoj committed Mar 22, 2016
1 parent 074b780 commit 0ac7e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observable/dom/AjaxObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface AjaxRequest {
responseType?: string;
}

const createXHRDefault = (): XMLHttpRequest => {
function createXHRDefault(): XMLHttpRequest {
let xhr = new root.XMLHttpRequest();
if (this.crossDomain) {
if ('withCredentials' in xhr) {
Expand All @@ -36,7 +36,7 @@ const createXHRDefault = (): XMLHttpRequest => {
} else {
return xhr;
}
};
}

export interface AjaxCreationMethod {
<T>(urlOrRequest: string | AjaxRequest): Observable<T>;
Expand Down

0 comments on commit 0ac7e1e

Please sign in to comment.