route_init.js
function (params) {
			// 
			// Close the route once it has been handled.
			//
			var closeRoute = function () {
				that._closeRoute(dir, req, res, params);
			};

			var async = new Async(closeRoute);
			routeConfig.handler(req, res, params, async);

			if (!async.started()) {
				// No async operation was started.
				// Close the route immediately.
				closeRoute();
			}			
		}
function (params) {
			// 
			// Close the route once it has been handled.
			//
			var closeRoute = function () {
				that._closeRoute(dir, req, res, params);
			};

			var async = new Async(closeRoute);
			routeConfig.handler(req, res, params, async);

			if (!async.started()) {
				// No async operation was started.
				// Close the route immediately.
				closeRoute();
			}			
		}
function ( params ) { //  // Close the route once it has been handled. // var closeRoute = function ( ) { that . _closeRoute ( dir , req , res , params ) ; } ; var async = new Async ( closeRoute ) ; routeConfig . handler ( req , res , params , async ) ; if ( ! async . started ( ) ) { // No async operation was started. // Close the route immediately. closeRoute ( ) ; } }
When the route has been opened, invoke the route handler.
When the route has been opened invoke the route handler .