From ba4665d36af92a509bf11e524f53d76f3789fb5d Mon Sep 17 00:00:00 2001 From: Randy Stauner Date: Wed, 7 Apr 2010 10:17:52 -0700 Subject: [PATCH] Condense code by eliminating some whitespace and using a local variable in place of 'this'. --- dispatcher.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dispatcher.js b/dispatcher.js index a1c8b63..8afa6fa 100644 --- a/dispatcher.js +++ b/dispatcher.js @@ -19,7 +19,8 @@ Auger.Dispatcher._onhashchange = function(e){ // gets detached (avoid unnecessa // prefix string, regex, or boolean function (allows multiple "apps" on the same page) Auger.Dispatcher._dispatch_types = [null, 'string', RegExp, Function]; Auger.Dispatcher.dispatch = function(c,f){ - var t = this._dispatch_types, d = null; + var a = Auger.Dispatcher; // this + var t = a._dispatch_types, d = null; if(!f) d = [0,null,c]; else if(typeof(c) == 'string') @@ -28,13 +29,13 @@ Auger.Dispatcher.dispatch = function(c,f){ for(var i=2; i