--- a/client/js/save-once.js Tue Apr 23 22:30:09 2013 +0200
+++ b/client/js/save-once.js Tue Apr 23 22:53:01 2013 +0200
@@ -24,7 +24,7 @@
_renkan.renderer.autoScale();
}
});
- }
+ };
var _save = function() {
_proj.set("saved_at", new Date());
var _data = _proj.toJSON();
@@ -40,7 +40,7 @@
$(".Rk-Notifications").text("Saved as "+document.location.href).fadeIn().delay(2000).fadeOut();
}
});
- }
+ };
var _checkLeave = function() {
var title = _proj.get("title");
if (title && _proj.get("nodes").length) {
@@ -55,7 +55,7 @@
_saveWarn = true;
$(window).on("beforeunload", _onLeave);
}
- }
+ };
_load();
_proj.on("add:nodes add:edges add:users change", function(_model) {
_model.on("change remove", function(_model) {
@@ -72,4 +72,4 @@
_save();
}
});
-}
+};