From cc8050accd24e6115695daaa1329e5924d371770 Mon Sep 17 00:00:00 2001 From: Gandalf-the-Bot Date: Wed, 17 Aug 2016 13:11:27 +0000 Subject: [PATCH] Bundled output for commit 8c9cc0e1f4312249724a0867bfdf39217762276f [skip ci] --- mithril.js | 1 - mithril.min.js | 80 +++++++++++++++++++++++++------------------------- 2 files changed, 40 insertions(+), 41 deletions(-) diff --git a/mithril.js b/mithril.js index 231a04e6..235f477c 100644 --- a/mithril.js +++ b/mithril.js @@ -1093,7 +1093,6 @@ m.route = function($window, renderer, pubsub) { current.path = path, current.component = component renderer.render(root, payload.view(Vnode(component, null, args, undefined, undefined, undefined))) } - if (typeof payload.onmatch !== "function") payload.onmatch = function() {resolve(current.component)} if (path !== current.path) payload.onmatch(Vnode(payload, null, args, undefined, undefined, undefined), resolve) else resolve(current.component) } diff --git a/mithril.min.js b/mithril.min.js index c4fa1df9..aee559a2 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -1,41 +1,41 @@ -new function(){function x(b,d,p,g,l,m){return{tag:b,key:d,attrs:p,children:g,text:l,dom:m,domSize:void 0,state:{},events:void 0,instance:void 0,skip:!1}}x.normalize=function(b){return b instanceof Array?x("[",void 0,void 0,x.normalizeChildren(b),void 0,void 0):null!=b&&"object"!==typeof b?x("#",void 0,void 0,b,void 0,void 0):b};x.normalizeChildren=function(b){for(var d=0;d=q&&y>=B;){var h=a[q],u=e[B];if(h===u)q++,B++;else if(null!=h&&null!=u&&h.key===u.key)q++,B++,m(c,h,u,f,t(a,q,b),r,g),r&&h.tag===u.tag&&n(c,k(h),b);else if(h=a[w],h===u)w--,B++;else if(null!=h&&null!=u&&h.key===u.key)m(c,h,u,f,t(a,w+1,b),r,g),B=q&&y>=B;){h=a[w];u=e[y];if(h===u)w--;else if(null!=h&&null!=u&&h.key===u.key)m(c,h,u,f,t(a,w+1,b),r,g),r&&h.tag===u.tag&&n(c,k(h),b), -null!=h.dom&&(b=h.dom),w--;else{if(!l){l=a;var h=w,z={},x;for(x=0;x=q&&y>=B;){var h=a[q],v=e[B];if(h===v)q++,B++;else if(null!=h&&null!=v&&h.key===v.key)q++,B++,n(c,h,v,g,t(a,q,b),r,l),r&&h.tag===v.tag&&x(c,m(h),b);else if(h=a[f],h===v)f--,B++;else if(null!=h&&null!=v&&h.key===v.key)n(c,h,v,g,t(a,f+1,b),r,l),B=q&&y>=B;){h=a[f];v=e[y];if(h===v)f--;else if(null!=h&&null!=v&&h.key===v.key)n(c,h,v,g,t(a,f+1,b),r,l),r&&h.tag===v.tag&&x(c,m(h),b), +null!=h.dom&&(b=h.dom),f--;else{if(!k){k=a;var h=f,z={},w;for(w=0;wb.indexOf("?")?"?":"&";b+=g+h}return b}function l(b){try{return""!==b?JSON.parse(b):null}catch(d){throw Error(b);}}function m(b){return b.responseText}function k(b,d){if("function"===typeof b)if(d instanceof Array)for(var h=0;hn.status)d(k(f.type, -b));else{var h=Error(n.responseText),g;for(g in b)h[g]=b[g];d.error(h)}}catch(l){d.error(l)}"function"===typeof v&&v()}};h?n.send(f.data):n.send();return d},jsonp:function(d){var l=t();void 0!==d.initialValue&&l(d.initialValue);var h=d.callbackName||"_mithril_"+Math.round(1E16*Math.random())+"_"+n++,w=b.document.createElement("script");b[h]=function(g){w.parentNode.removeChild(w);l(k(d.type,g));"function"===typeof v&&v();delete b[h]};w.onerror=function(){w.parentNode.removeChild(w);l.error(Error("JSONP request failed")); -"function"===typeof v&&v();delete b[h]};null==d.data&&(d.data={});d.url=p(d.url,d.data);d.data[d.callbackKey||"callback"]=h;w.src=g(d.url,d.data);b.document.documentElement.appendChild(w);return l},setCompletionCallback:function(b){v=b}}}(window,console.error.bind(console)),D=function(){var b=[];return{subscribe:b.push.bind(b),unsubscribe:function(d){d=b.indexOf(d);-1b.indexOf("?")?"?":"&";b+=l+f}return b}function k(b){try{return""!==b?JSON.parse(b):null}catch(d){throw Error(b);}}function n(b){return b.responseText}function m(b,d){if("function"===typeof b)if(d instanceof Array)for(var f=0;fl.status)d(m(g.type, +b));else{var f=Error(l.responseText),h;for(h in b)f[h]=b[h];d.error(f)}}catch(x){d.error(x)}"function"===typeof u&&u()}};h?l.send(g.data):l.send();return d},jsonp:function(d){var k=t();void 0!==d.initialValue&&k(d.initialValue);var h=d.callbackName||"_mithril_"+Math.round(1E16*Math.random())+"_"+x++,l=b.document.createElement("script");b[h]=function(f){l.parentNode.removeChild(l);k(m(d.type,f));"function"===typeof u&&u();delete b[h]};l.onerror=function(){l.parentNode.removeChild(l);k.error(Error("JSONP request failed")); +"function"===typeof u&&u();delete b[h]};null==d.data&&(d.data={});d.url=p(d.url,d.data);d.data[d.callbackKey||"callback"]=h;l.src=f(d.url,d.data);b.document.documentElement.appendChild(l);return k},setCompletionCallback:function(b){u=b}}}(window,console.error.bind(console)),D=function(){var b=[];return{subscribe:b.push.bind(b),unsubscribe:function(d){d=b.indexOf(d);-1