Permalink
Browse files

introducing the concept of adapter.page which represents an abstracti…

…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...
1 parent 21c566a commit 0d36bf1bbe9b851f34eaca1490886a52ec1f9818 @caridy caridy committed Feb 26, 2013
@@ -218,6 +218,7 @@ YUI.add('mojito-client', function(Y, NAME) {
* server to start up mojito.
*/
function MojitoClient(config) {
+ this.page = {};
this.timeLogStack = [];
this.yuiConsole = null;
this._pauseQueue = [];
@@ -139,6 +139,7 @@ YUI.add('mojito-output-handler', function(Y, NAME) {
this.callback = cb;
this.buffer = '';
this.mojitoClient = mojitoClient;
+ this.page = mojitoClient.page;
}
@@ -30,6 +30,7 @@ var NAME = 'OutputHandler.server',
this.res = res;
this.next = next;
this.headers = {};
+ this.page = {};
};

0 comments on commit 0d36bf1

Please sign in to comment.