Use the new json2 module (from yaws)
[euphorik.git] / js / fragment.js
index 23f22d0..50ec943 100644 (file)
@@ -25,7 +25,7 @@ Fragment = function() {
    var replaceHtmlCode = function(str) {
       return str.replace(/%(\d\d)/g, function(text, code) {
          return String.fromCharCode(parseInt(code, 16));
-      })
+      });
    };
    this.fragments = {};
    if (!window.location.hash) {
@@ -38,7 +38,6 @@ Fragment = function() {
           thisFragment.fragments[tuple[0]] = JSON.parse(tuple[1]);
        });
    } catch(error) {
-      alert(error)
       ;; console.log(error);
    }
 };
@@ -73,4 +72,4 @@ Fragment.prototype.write = function() {
       first = false;
    });
    window.location.hash = fragmentsStr;
-};
\ No newline at end of file
+};