Revert "File.js"
[app.Builder.js] / Builder3 / Main.js
index f6b1d33..c098538 100644 (file)
@@ -3,11 +3,11 @@ Gdk = imports.gi.Gdk;
 
 Window = imports.Builder3.Window.Window;
 
-Json.xstringify = function (o) {}
+JSON.xstringify = function (o) {
          var seen = [];
          return JSON.stringify(o, function(_, value) {
                  if (typeof value === 'object' && value !== null) {
-                         if (seen.indexOf(value) !== -1) return;
+                         if (seen.indexOf(value) !== -1) return null;
                          else seen.push(value);
                  }
                  return value;