Chromium Code Reviews| Index: lib/html/dartium/html_dartium.dart |
| diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart |
| index 70707e9552d95f0faeb8d94730fd504a47f07478..53849e2d2116633dc2652175e3bce42530aacf31 100644 |
| --- a/lib/html/dartium/html_dartium.dart |
| +++ b/lib/html/dartium/html_dartium.dart |
| @@ -10505,18 +10505,11 @@ class _IDBObjectStoreImpl extends _DOMTypeBase implements IDBObjectStore { |
| } |
| IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) { |
| - if (range === null) { |
| - if (direction === null) { |
| - return _wrap(_ptr.openCursor()); |
| - } |
| + if (direction === null) { |
| + return _wrap(_ptr.openCursor(_unwrap(range))); |
| } else { |
| - if (direction === null) { |
| - return _wrap(_ptr.openCursor(_unwrap(range))); |
| - } else { |
| - return _wrap(_ptr.openCursor(_unwrap(range), _unwrap(direction))); |
| - } |
| + return _wrap(_ptr.openCursor(_unwrap(range), _unwrap(direction))); |
|
Anton Muhin
2012/05/03 19:15:56
that should be able to cope w/ null, correct?
|
| } |
| - throw "Incorrect number or type of arguments"; |
| } |
| IDBRequest put(/*SerializedScriptValue*/ value, [/*IDBKey*/ key = null]) { |