Fix m.request/m.jsonp to not mutate arguments, simplify code (#2288)

I basically recast it to remove 99% of the duplication. They're
basically the same function mod how they fire their requests and append
query parameters.
This commit is contained in:
Isiah Meadows 2018-11-28 20:10:46 -05:00 committed by GitHub
parent eee2c1b032
commit 7cbc15e7a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 97 additions and 111 deletions

View file

@ -73,6 +73,7 @@
- render/core: avoid touching `Object.prototype.__proto__` setter with `key: "__proto__"` in certain situations ([#2251](https://github.com/MithrilJS/mithril.js/pull/2251))
- render/core: Vnodes stored in the dom node supplied to `m.render()` are now normalized [#2266](https://github.com/MithrilJS/mithril.js/pull/2266)
- render/core: CSS vars can now be specified in `{style}` attributes [#2192](https://github.com/MithrilJS/mithril.js/pull/2192)
- request: don't modify params, call `extract`/`serialize`/`deserialize` with correct `this` value ([#2288](https://github.com/MithrilJS/mithril.js/pull/2288))
---