| Index: lib/html/dartium/html_dartium.dart
|
| diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
|
| index 081c22b10fd43da51d11a777821915cbc1117d7a..dd3226eb54e73efdd47354047fe64b136d5624e8 100644
|
| --- a/lib/html/dartium/html_dartium.dart
|
| +++ b/lib/html/dartium/html_dartium.dart
|
| @@ -10486,26 +10486,19 @@ class _IDBObjectStoreImpl extends _DOMTypeBase implements IDBObjectStore {
|
| }
|
|
|
| IDBRequest openCursor([key_OR_range = null, int direction = null]) {
|
| - if (key_OR_range === null) {
|
| + if (key_OR_range is IDBKeyRange) {
|
| if (direction === null) {
|
| - return _wrap(_ptr.openCursor());
|
| + return _wrap(_ptr.openCursor(_unwrap(key_OR_range)));
|
| + } else {
|
| + return _wrap(_ptr.openCursor(_unwrap(key_OR_range), _unwrap(direction)));
|
| }
|
| } else {
|
| - if (key_OR_range is IDBKeyRange) {
|
| - if (direction === null) {
|
| - return _wrap(_ptr.openCursor(_unwrap(key_OR_range)));
|
| - } else {
|
| - return _wrap(_ptr.openCursor(_unwrap(key_OR_range), _unwrap(direction)));
|
| - }
|
| + if (direction === null) {
|
| + return _wrap(_ptr.openCursor(_unwrap(key_OR_range)));
|
| } else {
|
| - if (direction === null) {
|
| - return _wrap(_ptr.openCursor(_unwrap(key_OR_range)));
|
| - } else {
|
| - return _wrap(_ptr.openCursor(_unwrap(key_OR_range), _unwrap(direction)));
|
| - }
|
| + return _wrap(_ptr.openCursor(_unwrap(key_OR_range), _unwrap(direction)));
|
| }
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| }
|
|
|
| IDBRequest put(/*SerializedScriptValue*/ value, [/*IDBKey*/ key = null]) {
|
|
|