From 6c6caa1b5743bd7c88d15b962d5754922a5fdb98 Mon Sep 17 00:00:00 2001 From: Gandalf-the-Bot Date: Sun, 24 Sep 2017 19:11:27 +0000 Subject: [PATCH] Bundled output for commit cf9a31b7b0df29cffa50e159dba2b53e718bb325 [skip ci] --- README.md | 2 +- mithril.js | 4 ++-- mithril.min.js | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 58a263eb..21055536 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ mithril.js [![NPM Version](https://img.shields.io/npm/v/mithril.svg)](https://ww ## What is Mithril? -A modern client-side Javascript framework for building Single Page Applications. It's small (8.41 KB gzipped), fast and provides routing and XHR utilities out of the box. +A modern client-side Javascript framework for building Single Page Applications. It's small (8.42 KB gzipped), fast and provides routing and XHR utilities out of the box. Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍. diff --git a/mithril.js b/mithril.js index ba541f5e..3de1950e 100644 --- a/mithril.js +++ b/mithril.js @@ -861,7 +861,7 @@ var coreRenderer = function($window) { //setting option[value] to same value while having select open blinks select dropdown in Chrome if (vnode.tag === "option" && old != null && vnode.dom.value === normalized0) return } - // If you assign an input type1 that is not supported by IE 11 with an assignment expression, an error0 will occur. + // If you assign an input type1 that is not supported by IE 11 with an assignment expression, an error1 will occur. if (vnode.tag === "input" && key2 === "type") { element.setAttribute(key2, value) return @@ -1043,7 +1043,7 @@ var _11 = function($window, throttleMock) { function sync() { if (rendering) throw new Error("Nested m.redraw.sync() call") rendering = true - for (var i = 1; i < callbacks.length; i+=2) try {callbacks[i]()} catch (e) {/*noop*/} + for (var i = 1; i < callbacks.length; i+=2) try {callbacks[i]()} catch (e) {console.error(e)} rendering = false } var redraw = (throttleMock || throttle)(sync) diff --git a/mithril.min.js b/mithril.min.js index bfb4f117..142c3037 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -34,12 +34,12 @@ a.dom.value===g&&a.dom===t.activeElement)return;if("select"===a.tag)if(null===d) a||"onbeforeremove"===a||"onbeforeupdate"===a}function H(){}function A(a,c,b){null!=a.events?a.events[c]!==b&&(null==b||"function"!==typeof b&&"object"!==typeof b?(null!=a.events[c]&&a.dom.removeEventListener(c.slice(2),a.events,!1),a.events[c]=void 0):(null==a.events[c]&&a.dom.addEventListener(c.slice(2),a.events,!1),a.events[c]=b)):null==b||"function"!==typeof b&&"object"!==typeof b||(a.events=new H,a.dom.addEventListener(c.slice(2),a.events,!1),a.events[c]=b)}function I(a,c,b){"function"===typeof a.oninit&& a.oninit.call(c.state,c);"function"===typeof a.oncreate&&b.push(a.oncreate.bind(c.state,c))}function K(a,c,b){"function"===typeof a.onupdate&&b.push(a.onupdate.bind(c.state,c))}var t=b.document,L=t.createDocumentFragment(),G={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},E;H.prototype=Object.create(null);H.prototype.handleEvent=function(a){var c=this["on"+a.type];"function"===typeof c?c.call(a.target,a):"function"===typeof c.handleEvent&&c.handleEvent(a);"function"=== typeof E&&E.call(a.target,a)};return{render:function(a,c){if(!a)throw Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var b=[],d=t.activeElement,f=a.namespaceURI;null==a.vnodes&&(a.textContent="");Array.isArray(c)||(c=[c]);m(a,a.vnodes,y.normalizeChildren(c),!1,b,null,"http://www.w3.org/1999/xhtml"===f?void 0:f);a.vnodes=c;for(f=0;f