Skip to content

Commit

Permalink
fix(ajax): ensure XHR send is being called
Browse files Browse the repository at this point in the history
I am really not sure how we did not catch this. I suspect jasmine-ajax does not check to
see if send as been called on a given XHR. Really strange
  • Loading branch information
benlesh committed Jan 13, 2016
1 parent 8f5ef62 commit c569e3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/observable/dom/ajax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ export class AjaxSubscriber<T> extends Subscriber<Event> {
if (result === errorObject) {
return this.error(errorObject.e);
}

xhr.send();
}

private createXHR(): XMLHttpRequest {
Expand Down

0 comments on commit c569e3e

Please sign in to comment.