minor changes

This commit is contained in:
coderaiser 2012-07-27 03:34:22 -04:00
parent 48e72aacdc
commit fbabc773b2
3 changed files with 12 additions and 4 deletions

View file

@ -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){

View file

@ -1,7 +1,7 @@
{
"cache" : {"allowed" : false},
"minification" : {
"js" : true,
"js" : false,
"css" : true,
"html" : true,
"img" : true

View file

@ -66,7 +66,7 @@ var CloudServer = {
/* КОНСТАНТЫ */
INDEX : 'index.html',
LIBDIR : './lib',
LIBDIRSERVER : './lib/server'
LIBDIRSERVER : './lib/server'
};
var DirPath = '/';