client/js/save-once.js
changeset 293 fba23fde14ba
parent 190 a9040a7c47d9
child 320 154b121a43f1
--- a/client/js/save-once.js	Fri May 16 12:37:51 2014 +0200
+++ b/client/js/save-once.js	Fri May 16 14:09:57 2014 +0200
@@ -6,7 +6,7 @@
         _onLeave = function() {
             return "Project not saved";
         };
-    if (typeof _opts.http_method == "undefined") {
+    if (typeof _opts.http_method === "undefined") {
         _opts.http_method = 'POST';
     }
     var _load = function() {
@@ -71,5 +71,5 @@
         } else {
             _save();
         }
-    }
+    };
 };