 				]
 				injector = window.angular.element(window.document).injector()
 				injector.invoke invocation
-				
 				{$sniffer, socket} = shrub
 				
 				# Don't even try HTML 5 history on the server side.

			
			unlisten = $rootScope.$on 'shrubFinishedRendering', ->
				unlisten()
				formFn()
				
			$rootScope.$apply -> $location.path path

				# Touch the context to keep it alive.
				context.touch()
				
				# Emit the last HTML generated before the redirect.
				if context.redirect
					return process.nextTick ->
						res.end context.redirect
						context.redirect = null
				
				# Prevent a possible race condition that would hang up the
				# context in between now and render.
				deferred = Q.defer()
