diff --git a/mithril.js b/mithril.js index bb6edd23..e38b46a6 100644 --- a/mithril.js +++ b/mithril.js @@ -680,11 +680,11 @@ var renderService = function($window) { } //style function updateStyle(element, old, style) { - if (old === style) element.cssText = "", old = null - if (style == null) element.cssText = "" - else if (typeof style === "string") element.cssText = style + if (old === style) element.style.cssText = "", old = null + if (style == null) element.style.cssText = "" + else if (typeof style === "string") element.style.cssText = style else { - if (typeof old === "string") element.cssText = "" + if (typeof old === "string") element.style.cssText = "" for (var key in style) { element.style[key] = style[key] } diff --git a/mithril.min.js b/mithril.min.js index 6e99b40e..2c36935b 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -21,10 +21,10 @@ c&&(f.domSize=c)}break;default:a=m;h=f.dom=c.dom;switch(f.tag){case "svg":a="htt c,null,!1),g(a,d(f,b,void 0),h)}function l(a){var c=a.domSize;if(null!=c||null==a.dom){var f=x.createDocumentFragment();if(0a.indexOf("?")?"?":"&";a+=h+d}return a}function e(a){try{return""!== a?JSON.parse(a):null}catch(b){throw Error(a);}}function k(a){return a.responseText}function q(a,b){if("function"===typeof a)if(b instanceof Array)for(var d=0;d