v1.0.0-rc.8

This commit is contained in:
Pat Cavit 2017-01-13 20:18:13 -08:00
parent 3d379e0adb
commit 81ef3e5951
3 changed files with 3 additions and 3 deletions

View file

@ -1154,7 +1154,7 @@ m.request = requestService.request
m.jsonp = requestService.jsonp
m.parseQueryString = parseQueryString
m.buildQueryString = buildQueryString
m.version = "1.0.0-rc.7"
m.version = "1.0.0-rc.8"
m.vnode = Vnode
if (typeof module !== "undefined") module["exports"] = m
else window.m = m

2
mithril.min.js vendored
View file

@ -39,4 +39,4 @@ h?(m=k?k.state:null,v=k?k.title:null,a.onpopstate(),k&&k.replace?a.history.repla
1,-2),k=0;k<a.length;k++)h[a[k].replace(/:|\./g,"")]=decodeURIComponent(d[k]);l(c[r],h,b,r)});return}m(b,h)}h?a.onpopstate=k(b):"#"===p.prefix.charAt(0)&&(a.onhashchange=b);b()}};return p};B.route=function(a,c){var k=R(a),d=function(a){return a},h,m,l,p,r,q=function(a,b,q){if(null==a)throw Error("Ensure the DOM element that was passed to `m.route` is not undefined");var u=function(){null!=h&&c.render(a,h(x(m,l.key,l)))},w=function(){k.setPath(b,null,{replace:!0})};k.defineRoutes(q,function(a,b,c){var k=
r=function(a,n){k===r&&(m=null!=n&&"function"===typeof n.view?n:"div",l=b,p=c,r=null,h=(a.render||d).bind(a),u())};a.view?k({},a):a.onmatch?Q.resolve(a.onmatch(b,c)).then(function(b){k(a,b)},w):k(a,"div")},w);c.subscribe(a,u)};q.set=function(a,b,c){null!=r&&(c={replace:!0});r=null;k.setPath(a,b,c)};q.get=function(){return p};q.prefix=function(a){k.prefix=a};q.link=function(a){a.dom.setAttribute("href",k.prefix+a.attrs.href);a.dom.onclick=function(a){a.ctrlKey||a.metaKey||a.shiftKey||2===a.which||
(a.preventDefault(),a.redraw=!1,a=this.getAttribute("href"),0===a.indexOf(k.prefix)&&(a=a.slice(k.prefix.length)),q.set(a,void 0,void 0))}};q.param=function(a){return"undefined"!==typeof l&&"undefined"!==typeof a?l[a]:l};return q}(window,F);B.withAttr=function(a,c,k){return function(d){return c.call(k||this,a in d.currentTarget?d.currentTarget[a]:d.currentTarget.getAttribute(a))}};var S=M(window);B.render=S.render;B.redraw=F.redraw;B.request=I.request;B.jsonp=I.jsonp;B.parseQueryString=J;B.buildQueryString=
E;B.version="1.0.0-rc.7";B.vnode=x;"undefined"!==typeof module?module.exports=B:window.m=B};
E;B.version="1.0.0-rc.8";B.vnode=x;"undefined"!==typeof module?module.exports=B:window.m=B};

View file

@ -1,6 +1,6 @@
{
"name": "mithril",
"version": "1.0.0-rc.7",
"version": "1.0.0-rc.8",
"description": "A framework for building brilliant applications",
"author": "Leo Horie",
"license": "MIT",