| Index: tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate b/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
|
| index 44f866cc202b339851c34f54c27c36c31248cb50..03af72c15d2956108700de3606805e58b74221c1 100644
|
| --- a/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
|
| @@ -55,7 +55,12 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| } else {
|
| key_OR_range = range;
|
| }
|
| - var request = _openCursor(key_OR_range, direction);
|
| + var request;
|
| + if (direction == null) {
|
| + request = _openCursor(key_OR_range);
|
| + } else {
|
| + request = _openCursor(key_OR_range, direction);
|
| + }
|
| return ObjectStore._cursorStreamFromResult(request, autoAdvance);
|
| }
|
|
|
| @@ -77,7 +82,12 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| } else {
|
| key_OR_range = range;
|
| }
|
| - var request = _openKeyCursor(key_OR_range, direction);
|
| + var request;
|
| + if (direction == null) {
|
| + request = _openKeyCursor(key_OR_range);
|
| + } else {
|
| + request = _openKeyCursor(key_OR_range, direction);
|
| + }
|
| return ObjectStore._cursorStreamFromResult(request, autoAdvance);
|
| }
|
|
|
|
|