mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
48e72aacdc
commit
fbabc773b2
3 changed files with 12 additions and 4 deletions
12
client.js
12
client.js
|
|
@ -650,8 +650,16 @@ CloudClient._anyload = function(pParams_o)
|
|||
element.onload = lFunc;
|
||||
/* if object - then onload or onerror */
|
||||
}else if (typeof lFunc === 'object') {
|
||||
if(lFunc.onload)element.onload = lFunc.onload;
|
||||
if(lFunc.onerror)element.onerror = lFunc.onerror;
|
||||
if(lFunc.onload &&
|
||||
typeof lFunc.onload === 'function')
|
||||
element.onload = lFunc.onload;
|
||||
|
||||
if(lFunc.onerror &&
|
||||
typeof lFunc.onerror === 'function')
|
||||
element.onerror = (function(){
|
||||
lFunc.onerror();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
if(pParams_o.style){
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"cache" : {"allowed" : false},
|
||||
"minification" : {
|
||||
"js" : true,
|
||||
"js" : false,
|
||||
"css" : true,
|
||||
"html" : true,
|
||||
"img" : true
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ var CloudServer = {
|
|||
/* КОНСТАНТЫ */
|
||||
INDEX : 'index.html',
|
||||
LIBDIR : './lib',
|
||||
LIBDIRSERVER : './lib/server'
|
||||
LIBDIRSERVER : './lib/server'
|
||||
};
|
||||
|
||||
var DirPath = '/';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue