| Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| index ed55ba159f4d2badd5caf0b3e4e3b86f44d6dbf7..ad19e115fe4ec28de9f4890815d59964724eda44 100644
|
| --- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| +++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| @@ -213,12 +213,7 @@ class Database extends EventTarget native "*IDBDatabase" {
|
| // numeric mode tend to convert the string into a number. This fails
|
| // silently, resulting in zero ('readonly').
|
| var txn = _transaction(storeName_OR_storeNames, mode);
|
| - if (_hasNumericMode(txn)) {
|
| - _transaction_fn = _transaction_numeric_mode;
|
| - txn = _transaction_fn(this, storeName_OR_storeNames, mode);
|
| - } else {
|
| - _transaction_fn = _transaction_string_mode;
|
| - }
|
| + _transaction_fn = _transaction_string_mode;
|
| return txn;
|
| }
|
|
|
| @@ -226,13 +221,6 @@ class Database extends EventTarget native "*IDBDatabase" {
|
| return db._transaction(stores, mode);
|
| }
|
|
|
| - static Transaction _transaction_numeric_mode(Database db, stores, mode) {
|
| - int intMode;
|
| - if (mode == 'readonly') intMode = Transaction.READ_ONLY;
|
| - if (mode == 'readwrite') intMode = Transaction.READ_WRITE;
|
| - return db._transaction(stores, intMode);
|
| - }
|
| -
|
| @JSName('transaction')
|
| Transaction _transaction(stores, mode) native;
|
|
|
|
|