-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ajax): add resultSelector and improve perf
Restructures ajax to use an AjaxSubscriber. removes unnecessary onload error handler adds additional tests around errored resultSelector and createXHR calls adds tests around resultSelector adds AjaxRequest type improves typing throughout ajax code a bit uses named function trick to avoid closures
- Loading branch information
Showing
4 changed files
with
340 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import {Observable} from '../../../Observable'; | ||
import {AjaxObservable} from '../../../observable/dom/ajax'; | ||
import { AjaxObservable } from '../../../observable/dom/ajax'; | ||
Observable.ajax = AjaxObservable.create; | ||
|
||
export var _void: void; |
Oops, something went wrong.