diff --git a/client.js b/client.js index a22e5421..b2c1b503 100644 --- a/client.js +++ b/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){ diff --git a/config.json b/config.json index 4a0dccf7..d58f0b2d 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "cache" : {"allowed" : false}, "minification" : { - "js" : true, + "js" : false, "css" : true, "html" : true, "img" : true diff --git a/server.js b/server.js index 511cb638..f6a35588 100644 --- a/server.js +++ b/server.js @@ -66,7 +66,7 @@ var CloudServer = { /* КОНСТАНТЫ */ INDEX : 'index.html', LIBDIR : './lib', - LIBDIRSERVER : './lib/server' + LIBDIRSERVER : './lib/server' }; var DirPath = '/';