Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: tools/dom/templates/html/impl/impl_IDBIndex.darttemplate

Issue 23461018: Fixing Indexed DB from latest Blink roll (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tests/html/html.status ('K') | « tools/dom/idl/dart/dart.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« tests/html/html.status ('K') | « tools/dom/idl/dart/dart.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698