diff --git a/mithril.js b/mithril.js index 51a68fbb..08586738 100644 --- a/mithril.js +++ b/mithril.js @@ -675,11 +675,11 @@ var renderService = function($window) { } //style function updateStyle(element, old, style) { - if (old === style) element.style = "", old = null - if (style == null) element.style = "" - else if (typeof style === "string") element.style = style + if (old === style) element.cssText = "", old = null + if (style == null) element.cssText = "" + else if (typeof style === "string") element.cssText = style else { - if (typeof old === "string") element.style = "" + if (typeof old === "string") element.cssText = "" for (var key in style) { element.style[key] = style[key] } diff --git a/mithril.min.js b/mithril.min.js index 2debfa92..83a9f417 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -21,7 +21,7 @@ u.normalize(e.tag.view.call(e.state,e)),y(e.tag,e,b,q),null!=e.instance?(null==c e.firstChild)}return e}return a.dom}function m(a,c,e){for(;c