added ability to pass string value in minify functions if passed single parameter

This commit is contained in:
coderaiser 2012-07-07 07:41:14 -04:00
parent 7f814ae3be
commit dcf089e4fd
2 changed files with 40 additions and 37 deletions

View file

@ -58,7 +58,6 @@ var CloudServer={
/* КОНСТАНТЫ */
/* index.html */
INDEX :'index.html',
/* name of direcotory with libs */
LIBDIR :'./lib',
LIBDIRSERVER :'./lib/server',
CSSDIR :'./css',
@ -163,7 +162,7 @@ CloudServer.Minify={
:false;
this.done.html=this._allowed.html?
lMinify.html():false;
lMinify.html(CloudServer.INDEX):false;
this.done.css=this._allowed.css?
lMinify.cssStyles([CloudServer.CSSDIR + '/style.css',
@ -742,8 +741,8 @@ CloudServer.writeLogsToFile = function(){
process.stdout.write = (function(write) {
return function(string, encoding, fd) {
stdo.write(string);
}
})(process.stdout.write)
}
};
})(process.stdout.write);
};
CloudServer.start();