]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Bugfix regarding non-standard-conform syntax allowed by FF but not Chrome
authorManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Wed, 5 Mar 2014 16:58:35 +0000 (17:58 +0100)
committerManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Wed, 5 Mar 2014 16:58:35 +0000 (17:58 +0100)
web/htdocs/scripts/cts.js

index 4a22d6e12d8d41b2d61e79936850ec8902d7e505..12aff90ee61ad9723aa53fd031acde0fc7d453f9 100644 (file)
@@ -1039,7 +1039,8 @@ window.addEvent('load', function() {
 function id(x) {return x;}
 
 
-function prettyJSON(obj, indent=""){
+function prettyJSON(obj, indent){
+   if (ident==undefined) ident="";
    if (obj && obj.toJSON) obj = obj.toJSON();
 
    switch (typeOf(obj)){