Changed the way Minify post-processing js-files so, from now in Minify object post-processing functions passed like this {client.js: function(){}}

This commit is contained in:
coderaiser 2012-07-10 07:36:08 -04:00
parent 64e801f7ea
commit a95d07e6d8
3 changed files with 15 additions and 13 deletions

View file

@ -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.
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(){}}

@ -1 +1 @@
Subproject commit e3dc2e6f085172e5fea02cb767994a145219723c
Subproject commit 080b6e746f773649fd06aa113a2298fa285478c3

View file

@ -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 ' +