diff --git a/.jshintrc b/.jshintrc index 0b47dc28..e8a1b118 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,9 +1,20 @@ { - "validthis": true, - "laxcomma" : true, - "laxbreak" : true, - "boss" : true, - "expr" : true, - "asi" : true, - "devel" : true + "bitwise" : true, + "browser" : true, + "devel" : true, + "eqeqeq" : true, + "es5" : true, + "forin" : true, + "globalstrict" : true, + "indent" : 4, + "jquery" : true, + "maxerr" : 50, + "newcap" : true, + "noarg" : true, + "node" : true, + "noempty" : true, + "nonew" : true, + "strict" : true, + "undef" : true, + "evil" : true /* using for JSON-parsing if brawser old and crappy */ } \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 1fa4700b..8f987a88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - 0.4 + #- 0.4 no need, it's to old (no gzip, jshint test not working out) - 0.6 - 0.7 # development version of 0.8, may be unstable notifications: diff --git a/client.js b/client.js index 7c2ae2ce..4b671199 100644 --- a/client.js +++ b/client.js @@ -6,13 +6,14 @@ */ //var CloudCommander=(function(window,document){ -var document,window; +//var document,window; var CloudCommander=(function(){ "use strict"; /* если функции console.log нет - создаём заглушку */ +/* var console; if(!window)window={console:{log:function(pParam){return pParam;}}}; else if(window && !window.console){ @@ -22,7 +23,7 @@ else if(window && !window.console){ } }; }else console=window.console; - +*/ /* window.jQuery || document.write('