mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
minor coment change
This commit is contained in:
parent
ee6e92dce2
commit
dcfe5df9b5
3 changed files with 21 additions and 11 deletions
|
|
@ -107,7 +107,7 @@ CloudServer.Cache={
|
|||
*/
|
||||
CloudServer.Minify={
|
||||
/* приватный переключатель минимизации */
|
||||
_allowed :{css:true,js:true,html:true},
|
||||
_allowed :{css:true,js:true,html:true, img: true},
|
||||
|
||||
/* функция разрешает или
|
||||
* запрещает минимизировать
|
||||
|
|
@ -115,13 +115,16 @@ CloudServer.Minify={
|
|||
* @pAllowed: - структура, в которой
|
||||
* передаються параметры
|
||||
* минификации, вида
|
||||
* {js:true,css:true,html:false}
|
||||
* {js:true,css:true,html:false; img:true}
|
||||
* img отвечает за перевод картинок в base64
|
||||
* и сохранение их в css-файл
|
||||
*/
|
||||
setAllowed :(function(pAllowed){
|
||||
if(pAllowed){
|
||||
this._allowed.css=pAllowed.css;
|
||||
this._allowed.js=pAllowed.js;
|
||||
this._allowed.html=pAllowed.html;
|
||||
this._allowed.img=pAllowed.img;
|
||||
}
|
||||
}),
|
||||
|
||||
|
|
@ -137,7 +140,7 @@ CloudServer.Minify={
|
|||
|
||||
this.done.js=this._allowed.js?lMinify.jsScripts():false;
|
||||
this.done.html=this._allowed.html?lMinify.html():false;
|
||||
this.done.css=this._allowed.css?lMinify.cssStyles():false;
|
||||
this.done.css=this._allowed.css?lMinify.cssStyles(this._allowed.img):false;
|
||||
}
|
||||
}),
|
||||
/* свойство показывающее случилась ли ошибка*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue