From 0b5f05f4ae1ffa15f71337fb62b9aaf49a34de9f Mon Sep 17 00:00:00 2001 From: Gandalf-the-Bot Date: Tue, 4 Apr 2017 10:28:10 +0000 Subject: [PATCH] Bundled output for commit d60e7ab30c8440efe9fa3f564a410f317d425e86 [skip ci] --- mithril.js | 4 ++-- mithril.min.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mithril.js b/mithril.js index bc3045c8..1c1495d4 100644 --- a/mithril.js +++ b/mithril.js @@ -42,8 +42,8 @@ function execSelector(state, attrs, children) { attrs[key] = state.attrs[key] } } - if (className != null) { - if (attrs.class != null) { + if (className !== undefined) { + if (attrs.class !== undefined) { attrs.class = undefined attrs.className = className } diff --git a/mithril.min.js b/mithril.min.js index 58d33dde..35332cf2 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -1,8 +1,8 @@ (function(){function B(b,d,f,g,e,n){return{tag:b,key:d,attrs:f,children:g,text:e,dom:n,domSize:void 0,state:void 0,_state:void 0,events:void 0,instance:void 0,skip:!1}}function C(b){var d=arguments[1],f=2,g;if(null==b||"string"!==typeof b&&"function"!==typeof b&&"function"!==typeof b.view)throw Error("The selector must be either a string or a component.");if("string"===typeof b){var e;if(!(e=M[b])){g="div";for(var n=[],k={};e=P.exec(b);){var q=e[1],m=e[2];""===q&&""!==m?g=m:"#"===q?k.id=m:"."===q? n.push(m):"["===e[3][0]&&((q=e[6])&&(q=q.replace(/\\(["'])/g,"$1").replace(/\\\\/g,"\\")),"class"===e[4]?n.push(q):k[e[4]]=q||!0)}0