Eleminate now-redundant if block. Add change-log notes.
This commit is contained in:
parent
1e56f7763e
commit
ae0b791530
2 changed files with 1 additions and 5 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
- API: `m.route.set()` causes all mount points to be redrawn ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
|
- API: `m.route.set()` causes all mount points to be redrawn ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
|
||||||
- API: If a user sets the Content-Type header within a request's options, that value will be the entire header value rather than being appended to the default value ([#1924](https://github.com/MithrilJS/mithril.js/pull/1924))
|
- API: If a user sets the Content-Type header within a request's options, that value will be the entire header value rather than being appended to the default value ([#1924](https://github.com/MithrilJS/mithril.js/pull/1924))
|
||||||
|
- API: Using style objects in hyperscript calls will now properly diff style properties from one render to another as opposed to re-writing all element style properties every render.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -572,11 +572,6 @@ module.exports = function($window) {
|
||||||
for (var key in style) {
|
for (var key in style) {
|
||||||
element.style[key] = style[key]
|
element.style[key] = style[key]
|
||||||
}
|
}
|
||||||
if (old != null && typeof old !== "string") {
|
|
||||||
for (var key in old) {
|
|
||||||
if (!(key in style)) element.style[key] = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue