diff --git a/mithril.js b/mithril.js index ce452406..275121ea 100644 --- a/mithril.js +++ b/mithril.js @@ -1143,7 +1143,7 @@ var _20 = function($window, redrawService0) { m.route = _20(window, redrawService) m.withAttr = function(attrName, callback1, context) { return function(e) { - return callback1.call(context || this, attrName in e.currentTarget ? e.currentTarget[attrName] : e.currentTarget.getAttribute(attrName)) + callback1.call(context || this, attrName in e.currentTarget ? e.currentTarget[attrName] : e.currentTarget.getAttribute(attrName)) } } var _28 = coreRenderer(window) diff --git a/mithril.min.js b/mithril.min.js index e627e3e3..df70d7c9 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -38,5 +38,5 @@ m="function"===typeof setImmediate?setImmediate:setTimeout,l,p={prefix:"#!",getP h?(m=k?k.state:null,v=k?k.title:null,a.onpopstate(),k&&k.replace?a.history.replaceState(m,v,p.prefix+c):a.history.pushState(m,v,p.prefix+c)):a.location.href=p.prefix+c},defineRoutes:function(c,l,m){function b(){var b=p.getPath(),h={},k=d(b,h,h),u=a.history.state;if(null!=u)for(var q in u)h[q]=u[q];for(var r in c)if(u=new RegExp("^"+r.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$"),u.test(k)){k.replace(u,function(){for(var a=r.match(/:[^\/]+/g)||[],d=[].slice.call(arguments, 1,-2),k=0;k