Permalink
Browse files

minify last update

  • Loading branch information...
1 parent 8860c99 commit aa8c4009778c4fe6cf494099eb42938203c5bf05 @haggen committed Aug 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 way.min.js
View
@@ -4,5 +4,5 @@
* licensed under http://creativecommons.org/licenses/by/3.0
* more on http://haggen.github.com/wayjs
*/
-(function(){var c;c=function(){this.routes=[]};c.prototype={map:function(d,b){var a={params:[]};a.action=b;a.pattern=this.translate(d,a);this.routes.push(a)},translate:function(d,b){var a;a=d.replace(/\//g,"\\/");a=a.replace(/\)/g,function(){return")?"});a=a.replace(/:(\w[\w\d]*)|\(/g,function(a,d){b.params.push("("===a?"_":d);return"("===a?"(":"([^\\/]+?)"});a=a.replace(/\*/g,function(){b.params.push("splat");return"(.+?)"});return RegExp("^"+a)},match:function(d){var b,a,c,g,f,e;c=[];for(f=0;f<
-this.routes.length;f++)if(b=this.routes[f],a={action:b.action,params:[]},g=d.match(b.pattern)){for(e=1;e<g.length;e++)a.params[b.params[e-1]]=g[e];c.push(a)}return c}};"undefined"===typeof window?module.exports=new c:window.way=new c})();
+(function(){var c;c=function(){this.routes=[]};c.prototype={map:function(d,b){var a={params:[]};a.action=b;a.pattern=this.translate(d,a);this.routes.push(a)},translate:function(d,b){var a;a=d.replace(/\//g,"\\/");a=a.replace(/\)/g,function(){return")?"});a=a.replace(/:(\w[\w\d]*)|\(/g,function(a,d){b.params.push("("===a?"_":d);return"("===a?"(":"([^\\/]+)"});a=a.replace(/\*/g,function(){b.params.push("splat");return"(.+)"});return RegExp("^"+a)},match:function(d){var b,a,c,g,f,e;c=[];for(f=0;f<this.routes.length;f++)if(b=
+this.routes[f],a={action:b.action,params:[]},g=d.match(b.pattern)){for(e=1;e<g.length;e++)a.params[b.params[e-1]]=g[e];c.push(a)}return c}};"undefined"===typeof window?module.exports=new c:window.way=new c})();

0 comments on commit aa8c400

Please sign in to comment.