Skip to content

Commit

Permalink
refactor: fix typings for destination
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Aug 2, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d3dea7d commit 889a9e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/internal/observable/dom/AjaxObservable.ts
Original file line number Diff line number Diff line change
@@ -226,10 +226,10 @@ export class AjaxSubscriber<T> extends Subscriber<Event> {

next(e: Event): void {
this.done = true;
const { xhr, request, destination } = this;
let result;
const destination = this.destination as Subscriber<any>;
let result: AjaxResponse;
try {
result = new AjaxResponse(e, xhr, request);
result = new AjaxResponse(e, this.xhr, this.request);
} catch (err) {
return destination.error(err);
}

0 comments on commit 889a9e9

Please sign in to comment.