From a95d07e6d829932c1d10bfccfd3f11be7abbfd0d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 10 Jul 2012 07:36:08 -0400 Subject: [PATCH] Changed the way Minify post-processing js-files so, from now in Minify object post-processing functions passed like this {client.js: function(){}} --- ChangeLog | 5 ++++- lib/server/minify | 2 +- server.js | 21 ++++++++++----------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index c44d46ce..8af8c533 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,4 +9,7 @@ js-script(or something other) has not loaded. * Fixed bug in object Minify, doit function, more processing function did not return final_code so changes was not saving, and clien side loaded keyBinding.js -and cloudfunc.js full sized versions. \ No newline at end of file +and cloudfunc.js full sized versions. + +* Changed the way Minify post-processing js-files so, from now in Minify object +post-processing functions passed like this {'client.js': function(){}} \ No newline at end of file diff --git a/lib/server/minify b/lib/server/minify index e3dc2e6f..080b6e74 160000 --- a/lib/server/minify +++ b/lib/server/minify @@ -1 +1 @@ -Subproject commit e3dc2e6f085172e5fea02cb767994a145219723c +Subproject commit 080b6e746f773649fd06aa113a2298fa285478c3 diff --git a/server.js b/server.js index 10aa1d76..b3261a4e 100644 --- a/server.js +++ b/server.js @@ -162,23 +162,22 @@ CloudServer.Minify={ 'git submodule init\n' + 'git submodule update'); } + /* + * temporary changed dir path, + * becouse directory lib is write + * protected by others by default + * so if node process is started + * from other user (root for example + * in nodester) we can not write + * minified versions + */ this.MinFolder = '/' + lMinify.MinFolder; var lMinFolder=this.MinFolder; this.done.js=this._allowed.js? lMinify.jsScripts(['client.js', 'lib/cloudfunc.js', 'lib/client/keyBinding.js'], - {Name: 'client.js', - /* - * temporary changed dir path, - * becouse directory lib is write - * protected by others by default - * so if node process is started - * from other user (root for example - * in nodester) we can not write - * minified versions - */ - Func: function(pFinalCode){ + {'client.js' : function(pFinalCode){ console.log('file name of ' + 'cloudfunc.js' + ' in ' +