update change log

This commit is contained in:
Leo Horie 2014-06-18 07:58:11 -04:00
parent b486e53b4b
commit 75b251adbf
2 changed files with 7 additions and 3 deletions

View file

@ -20,7 +20,7 @@
### Breaking changes:
- Due to the poor level of compatibility between XDomainRequest and XHR2, XDomainRequest is no longer called internally by Mithril. If you need to use CORS in IE9 or lower, you will need to return an XDomainRequest instance from `m.request`'s `config` method.
- Due to the poor level of compatibility between XDomainRequest and XHR2, XDomainRequest is no longer called internally by Mithril. If you need to use CORS in IE9 or lower, you will need to return an XDomainRequest instance from `m.request`'s `config` method [#121](https://github.com/lhorie/mithril.js/issues/121)
---

View file

@ -314,7 +314,7 @@ where:
[any deserialize(String dataToDeserialize),]
[any extract(XMLHttpRequest xhr, XHROptions options),]
[void type(Object<any> data),]
[void config(XMLHttpRequest xhr, XHROptions options)]
[XMLHttpRequest? config(XMLHttpRequest xhr, XHROptions options)]
}
```
@ -435,7 +435,7 @@ where:
And the data is `[{name: "John"}, {name: "Mary"}]`, then the response will contain an array of two User instances.
- **void config(XMLHttpRequest xhr, XHROptions options)** (optional)
- **XMLHttpRequest? config(XMLHttpRequest xhr, XHROptions options)** (optional)
An initialization function that runs after `open` and before `send`. Useful for adding request headers and when using XHR2 features, such as the XMLHttpRequest's `upload` property.
@ -446,6 +446,10 @@ where:
- **XHROptions options**
The `options` parameter that was passed into `m.request` call
- **returns XMLHttpRequest? xhr**
You may return an XHR-like object (e.g. a XDomainRequest instance) to override the provided XHR instance altogether.
- **returns Promise promise**