Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
introducing the concept of adapter.page which represents an abstracti…
Browse files Browse the repository at this point in the history
…on of req in the server and doc in the client. This structure could be use to store data per request on the server and per page on the client. at the moment, this structure will not be serialized or used after the dispatcher ends
  • Loading branch information
caridy committed Feb 26, 2013
1 parent 21c566a commit 0d36bf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/app/autoload/mojito-client.client.js
Expand Up @@ -218,6 +218,7 @@ YUI.add('mojito-client', function(Y, NAME) {
* server to start up mojito. * server to start up mojito.
*/ */
function MojitoClient(config) { function MojitoClient(config) {
this.page = {};
this.timeLogStack = []; this.timeLogStack = [];
this.yuiConsole = null; this.yuiConsole = null;
this._pauseQueue = []; this._pauseQueue = [];
Expand Down
1 change: 1 addition & 0 deletions lib/app/autoload/output-handler.client.js
Expand Up @@ -139,6 +139,7 @@ YUI.add('mojito-output-handler', function(Y, NAME) {
this.callback = cb; this.callback = cb;
this.buffer = ''; this.buffer = '';
this.mojitoClient = mojitoClient; this.mojitoClient = mojitoClient;
this.page = mojitoClient.page;
} }




Expand Down
1 change: 1 addition & 0 deletions lib/output-handler.server.js
Expand Up @@ -30,6 +30,7 @@ var NAME = 'OutputHandler.server',
this.res = res; this.res = res;
this.next = next; this.next = next;
this.headers = {}; this.headers = {};
this.page = {};
}; };




Expand Down

0 comments on commit 0d36bf1

Please sign in to comment.