| OLD | NEW |
| 1 /** | 1 /** |
| 2 * A client-side key-value store with support for indexes. | 2 * A client-side key-value store with support for indexes. |
| 3 * | 3 * |
| 4 * Many browsers support IndexedDB—a web standard for | 4 * Many browsers support IndexedDB—a web standard for |
| 5 * an indexed database. | 5 * an indexed database. |
| 6 * By storing data on the client in an IndexedDB, | 6 * By storing data on the client in an IndexedDB, |
| 7 * a web app gets some advantages, such as faster performance and persistence. | 7 * a web app gets some advantages, such as faster performance and persistence. |
| 8 * To find out which browsers support IndexedDB, | 8 * To find out which browsers support IndexedDB, |
| 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) | 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) |
| 10 * | 10 * |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 return _transaction(storeName, mode); | 373 return _transaction(storeName, mode); |
| 374 } | 374 } |
| 375 | 375 |
| 376 Transaction transactionList(List<String> storeNames, String mode) { | 376 Transaction transactionList(List<String> storeNames, String mode) { |
| 377 if (mode != 'readonly' && mode != 'readwrite') { | 377 if (mode != 'readonly' && mode != 'readwrite') { |
| 378 throw new ArgumentError(mode); | 378 throw new ArgumentError(mode); |
| 379 } | 379 } |
| 380 List storeNames_1 = convertDartToNative_StringArray(storeNames); | 380 List storeNames_1 = convertDartToNative_StringArray(storeNames); |
| 381 return _transaction(storeNames_1, mode); | 381 return _transaction(storeNames_1, mode); |
| 382 } | 382 } |
| 383 | 383 |
| 384 Transaction transactionStores(DomStringList storeNames, String mode) { | 384 Transaction transactionStores(DomStringList storeNames, String mode) { |
| 385 if (mode != 'readonly' && mode != 'readwrite') { | 385 if (mode != 'readonly' && mode != 'readwrite') { |
| 386 throw new ArgumentError(mode); | 386 throw new ArgumentError(mode); |
| 387 } | 387 } |
| 388 return _transaction(storeNames, mode); | 388 return _transaction(storeNames, mode); |
| 389 } | 389 } |
| 390 | 390 |
| 391 @JSName('transaction') | 391 @JSName('transaction') |
| 392 Transaction _transaction(stores, mode) native; | 392 Transaction _transaction(stores, mode) native; |
| 393 | 393 |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 @Creates('int|String|Null') | 1446 @Creates('int|String|Null') |
| 1447 @Returns('int|String|Null') | 1447 @Returns('int|String|Null') |
| 1448 final int newVersion; | 1448 final int newVersion; |
| 1449 | 1449 |
| 1450 @DomName('IDBVersionChangeEvent.oldVersion') | 1450 @DomName('IDBVersionChangeEvent.oldVersion') |
| 1451 @DocsEditable() | 1451 @DocsEditable() |
| 1452 @Creates('int|String|Null') | 1452 @Creates('int|String|Null') |
| 1453 @Returns('int|String|Null') | 1453 @Returns('int|String|Null') |
| 1454 final int oldVersion; | 1454 final int oldVersion; |
| 1455 } | 1455 } |
| OLD | NEW |