Skip to content

Commit

Permalink
Add rc argument to setupView() and setupResponse() (noticed during #238
Browse files Browse the repository at this point in the history
… work).
  • Loading branch information
seancorfield committed Feb 1, 2014
1 parent 77401cc commit a1fc807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions org/corfield/framework.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ component {
} else {
buildViewQueue();
internalFrameworkTrace( 'setupView() called' );
setupView();
setupView( rc = request.context );
if ( structKeyExists(request._fw1, 'view') ) {
internalFrameworkTrace( 'rendering #request._fw1.view#' );
out = internalView( request._fw1.view );
Expand Down Expand Up @@ -1123,7 +1123,7 @@ component {
* override this to provide request-specific finalization
* you do not need to call super.setupResponse()
*/
public void function setupResponse() { }
public void function setupResponse( struct rc ) { }

/*
* override this to provide session-specific initialization
Expand Down Expand Up @@ -1152,7 +1152,7 @@ component {
* populate the request context with globally required data
* you do not need to call super.setupView()
*/
public void function setupView() { }
public void function setupView( struct rc ) { }

/*
* use this to override the default view
Expand Down Expand Up @@ -2310,7 +2310,7 @@ component {

private void function setupResponseWrapper() {
internalFrameworkTrace( 'setupResponse() called' );
setupResponse();
setupResponse( rc = request.context );
}

private void function setupSessionWrapper() {
Expand Down

0 comments on commit a1fc807

Please sign in to comment.