numeric transaction modes are deprecated
authorRobert Kaiser <kairo@kairo.at>
Fri, 14 Sep 2012 00:17:33 +0000 (02:17 +0200)
committerRobert Kaiser <kairo@kairo.at>
Fri, 14 Sep 2012 00:17:33 +0000 (02:17 +0200)
js/ui.js

index d484274bddc8b405617d532ea736bf752d980edd..8efe4c052ffbb1840340357b02d4a35a62929385 100644 (file)
--- a/js/ui.js
+++ b/js/ui.js
@@ -139,8 +139,7 @@ var gPrefs = {
     if (!mainDB)
       return;
     var success = false;
-    var transaction = mainDB.transaction([this.objStore],
-                                         IDBTransaction.READ_WRITE);
+    var transaction = mainDB.transaction([this.objStore], "readwrite");
     var objStore = transaction.objectStore(this.objStore);
     var request = objStore.put(aValue, aKey);
     request.onsuccess = function(event) {
@@ -159,8 +158,7 @@ var gPrefs = {
     if (!mainDB)
       return;
     var success = false;
-    var transaction = mainDB.transaction([this.objStore],
-                                         IDBTransaction.READ_WRITE);
+    var transaction = mainDB.transaction([this.objStore], "readwrite");
     var request = transaction.objectStore(this.objStore).delete(aKey);
     request.onsuccess = function(event) {
       success = true;
@@ -206,8 +204,7 @@ var gTrackStore = {
   push: function(aValue, aCallback) {
     if (!mainDB)
       return;
-    var transaction = mainDB.transaction([this.objStore],
-                                         IDBTransaction.READ_WRITE);
+    var transaction = mainDB.transaction([this.objStore], "readwrite");
     var objStore = transaction.objectStore(this.objStore);
     var request = objStore.add(aValue);
     request.onsuccess = function(event) {
@@ -225,8 +222,7 @@ var gTrackStore = {
     if (!mainDB)
       return;
     var success = false;
-    var transaction = mainDB.transaction([this.objStore],
-                                         IDBTransaction.READ_WRITE);
+    var transaction = mainDB.transaction([this.objStore], "readwrite");
     var request = transaction.objectStore(this.objStore).clear();
     request.onsuccess = function(event) {
       success = true;