Index: client/html/generated/html/dartium/IDBObjectStore.dart |
diff --git a/client/html/generated/html/dartium/IDBObjectStore.dart b/client/html/generated/html/dartium/IDBObjectStore.dart |
index 57d7b37acdc0ec3dbdee0053dab287fb26e2f6b8..e5c382922dcf9dda46cf9f60493f6f5602c50423 100644 |
--- a/client/html/generated/html/dartium/IDBObjectStore.dart |
+++ b/client/html/generated/html/dartium/IDBObjectStore.dart |
@@ -22,12 +22,19 @@ class _IDBObjectStoreImpl extends _DOMTypeBase implements IDBObjectStore { |
return _wrap(_ptr.clear()); |
} |
- IDBRequest count([IDBKeyRange range = null]) { |
- if (range === null) { |
+ IDBRequest count([var key_OR_range = null]) { |
+ if (key_OR_range === null) { |
return _wrap(_ptr.count()); |
} else { |
- return _wrap(_ptr.count(_unwrap(range))); |
+ if (key_OR_range is IDBKeyRange) { |
+ return _wrap(_ptr.count(_unwrap(key_OR_range))); |
+ } else { |
+ if (key_OR_range is IDBKey) { |
+ return _wrap(_ptr.count(_unwrap(key_OR_range))); |
+ } |
+ } |
} |
+ throw "Incorrect number or type of arguments"; |
} |
IDBIndex createIndex(String name, String keyPath) { |