From a366599050e9999cdabeed3ff1da0f13b49f01f0 Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Wed, 12 Sep 2012 15:30:40 +0800 Subject: [PATCH] Implemented a quick'n'dirty console.log function --- fSession.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fSession.js b/fSession.js index 22136a1..551c40e 100644 --- a/fSession.js +++ b/fSession.js @@ -24,10 +24,16 @@ * oSession =fSession(oPrevious_oSession); // This is how you pass in a previous fSession object to use */ + (function(undefined){ + var console = {} + console.log = function(text) { + console_log('notice', text + '\n'); + } + // Setting up the internal _fSession function - var _fSession =function(sSession, oSession) { + var _fSession = function(sSession, oSession) { return new _fSession.fn.init(sSession, oSession); }