minor changes

This commit is contained in:
coderaiser 2012-10-01 06:20:13 -04:00
parent f1b720d2e3
commit 4e90d78619

View file

@ -131,16 +131,19 @@ CloudServer.init = (function(){
*/
this.Minify.setAllowed(CloudServer.Config.minification);
/* Если нужно минимизируем скрипты */
this.Minify.doit();
this.Minify._allowed = this.Minify.doit();
var lAppCache = CloudServer.AppCache;
/* создаём файл app cache */
if(this.Config.appcache && lAppCache && this.Config.server){
lAppCache.addFiles(
[{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'},
'./min/all.min.css']);
var lFiles = [{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];
if(this.Minify._allowed.css)
lFiles.push('./min/all.min.css');
lAppCache.addFiles(lFiles);
lAppCache.createManifest();
}
});