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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10344025: Forbid zero argument variant of IDBRequest.openCursor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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:
Download patch
« no previous file with comments | « lib/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: 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]) {
« no previous file with comments | « lib/dom/idl/dart/dart.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698