reset m.route.param correctly on route change
This commit is contained in:
parent
4cc123e01d
commit
83f497e129
4 changed files with 51 additions and 3 deletions
|
|
@ -2,8 +2,22 @@
|
|||
|
||||
[v0.1.1](/archive/v0.1.1) - maintenance
|
||||
|
||||
### Bug Fixes:
|
||||
|
||||
- `m.route.param` now resets on route change correctly [#15](https://github.com/lhorie/mithril.js/issues/15)
|
||||
|
||||
### Breaking changes:
|
||||
|
||||
- changed default value for `xhr.withCredentials` from `true` to `false` for `m.request`, since public APIs are more common than auth-walled ones
|
||||
- changed default value for `xhr.withCredentials` from `true` to `false` for `m.request`, since public APIs are more common than auth-walled ones. [#14](https://github.com/lhorie/mithril.js/issues/14)
|
||||
|
||||
In order to configure this flag, the following configuration should be used:
|
||||
|
||||
```javascript
|
||||
var privateAPI = function(xhr) {xhr.withCredentials = true};
|
||||
|
||||
m.request({method: "GET", url: "/foo", config: privateAPI});
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
[v0.1](/archive/v0.1) - Initial release
|
||||
Loading…
Add table
Add a link
Reference in a new issue