diff Lib/IMPL/Web/Application/Action.pm @ 173:aaab45153411

minor bugfixes
author sourcer
date Wed, 14 Sep 2011 18:59:01 +0400
parents 4267a2ac3d46
children d1676be8afcc
line wrap: on
line diff
--- a/Lib/IMPL/Web/Application/Action.pm	Mon Jun 20 23:42:44 2011 +0400
+++ b/Lib/IMPL/Web/Application/Action.pm	Wed Sep 14 18:59:01 2011 +0400
@@ -12,7 +12,7 @@
 	public property query => prop_get | owner_set;
 	public property response => prop_get | owner_set;
 	public property responseFactory => prop_get | owner_set;
-	
+	public property context => prop_get | owner_set;
 	private property _entryPoint => prop_all;
 }
 
@@ -21,6 +21,7 @@
 	
 	$this->responseFactory('IMPL::Web::Application::Response') unless $this->responseFactory; 
 	$this->response( $this->responseFactory->new(query => $this->query) );
+	$this->context({});
 }
 
 sub Invoke {
@@ -49,7 +50,7 @@
 	
 	if (ref $handler eq 'CODE') {
 		$this->_entryPoint( sub {
-			$handler->($this,$delegateNext);			
+			$handler->($this,$delegateNext);	
 		} );
 	} elsif (ref $handler and UNIVERSAL::isa($handler,'IMPL::Web::QueryHandler')) {
 		$this->_entryPoint( sub {