Уборка Unreachable statement. Замена === на == и !== на != в яваскриптах из-за ошибок с нестрогой типизацией при переходе на 7.4.

This commit is contained in:
2023-04-08 18:14:19 +03:00
parent 3f3ffc2114
commit cfaf82f73a
76 changed files with 2079 additions and 1918 deletions
+2 -2
View File
@@ -1064,14 +1064,14 @@ function ui_toggleMapsNav()
for(var i in c)
{c[i].style.display=underground.settings.mapsNavDisplay;}}
String.prototype.quote=function()
{var c,i,l=this.length,o='"';for(i=0;i<l;i+=1){c=this.charAt(i);if(c>=' '){if(c==='\\'||c==='"'){o+='\\';}
{var c,i,l=this.length,o='"';for(i=0;i<l;i+=1){c=this.charAt(i);if(c>=' '){if(c=='\\'||c=='"'){o+='\\';}
o+=c;}else{switch(c){case'\b':o+='\\b';break;case'\f':o+='\\f';break;case'\n':o+='\\n';break;case'\r':o+='\\r';break;case'\t':o+='\\t';break;default:c=c.charCodeAt();o+='\\u00'+Math.floor(c/16).toString(16)+
(c%16).toString(16);}}}
return o+'"';};var json=function()
{this.unserialize=function(s){return eval(s);};var addslashesRepl={'\r':'\\r','\n':'\\n','\t':'\\t','\0':'\\0','\\':'\\\\','\b':'\\b','\f':'\\f'};var addslashes=function(s)
{return s.toString().quote();}
var isArray=function(testObject)
{return testObject&&!(testObject.propertyIsEnumerable('length'))&&typeof testObject==='object'&&typeof testObject.length==='number';}
{return testObject&&!(testObject.propertyIsEnumerable('length'))&&typeof testObject=='object'&&typeof testObject.length=='number';}
var serializeArray=function(o)
{var s=['['];var first=true;for(var i=0;i<o.length;i++)
{var v=o[i];if(first)first=false;else s.push(',');s.push(this.serialize(v));}