moving out doit from minify to cloudcmd

This commit is contained in:
coderaiser 2012-12-27 05:46:58 -05:00
parent 02f8648c19
commit 5b4f1d146b
4 changed files with 10 additions and 12 deletions

View file

@ -99,7 +99,7 @@
lResetCSS = DIR + 'css/reset.css',
lIndex = DIR + 'html/index.html',
lMinify = Server.Minify;
lMinify = Server.CloudServer.Minify;
if (pAllowed.js) {
lOptimizeParams.push(LIBDIR + 'client.js');

View file

@ -3,9 +3,9 @@
"appcache" : false,
"cache" : {"allowed" : false},
"minification" : {
"js" : false,
"css" : false,
"html" : false,
"js" : true,
"css" : true,
"html" : true,
"img" : false
},
"github_key" : "891c251b925e4e967fa9",

View file

@ -97,7 +97,7 @@
lCache = this.Cache,
lAppCache = this.AppCache,
lMinifyAllowed = lConfig.minification;
lMinifyAllowed = lConfig.minification;
/* Переменная в которой храниться кэш*/
lCache.setAllowed(lConfig.cache.allowed);
@ -299,8 +299,8 @@
lFromCache_o.cache = false;
lFileData = CloudServer.Minify.Cache[
Path.basename(lName)];
if(lMinify.Cache)
lFileData = lMinify.Cache[Path.basename(lName)];
}
var lReadFileFunc_f = CloudServer.getReadFileFunc(lName),
/* если там что-то есть передаём данные в функцию readFile */

View file

@ -39,15 +39,13 @@
this._allowed = pAllowed;
}
}),
doit :(function(){
}),
optimize: function(pName, pParams){
var lResult = true;
if(!pParams)
pParams = {};
pParams.force = this.force;
if(!this.MinFolder)