Index: client/dom/generated/src/wrapping/_IDBIndexWrappingImplementation.dart |
diff --git a/client/dom/generated/src/wrapping/_IDBIndexWrappingImplementation.dart b/client/dom/generated/src/wrapping/_IDBIndexWrappingImplementation.dart |
index 4c4d1624b37156f2a1b791ff701677a96fcbd1c3..2a85a41cedc16feb902e6e8eb51da062b8ab2ad3 100644 |
--- a/client/dom/generated/src/wrapping/_IDBIndexWrappingImplementation.dart |
+++ b/client/dom/generated/src/wrapping/_IDBIndexWrappingImplementation.dart |
@@ -26,15 +26,23 @@ class _IDBIndexWrappingImplementation extends DOMWrapperBase implements IDBIndex |
bool get unique() { return _get_unique(this); } |
static bool _get_unique(var _this) native; |
- IDBRequest count([IDBKeyRange range = null]) { |
- if (range === null) { |
+ IDBRequest count([var key_OR_range = null]) { |
+ if (key_OR_range === null) { |
return _count(this); |
} else { |
- return _count_2(this, range); |
+ if (key_OR_range is IDBKeyRange) { |
+ return _count_2(this, key_OR_range); |
+ } else { |
+ if (key_OR_range is IDBKey) { |
+ return _count_3(this, key_OR_range); |
+ } |
+ } |
} |
+ throw "Incorrect number or type of arguments"; |
} |
static IDBRequest _count(receiver) native; |
- static IDBRequest _count_2(receiver, range) native; |
+ static IDBRequest _count_2(receiver, key_OR_range) native; |
+ static IDBRequest _count_3(receiver, key_OR_range) native; |
IDBRequest getObject(IDBKey key) { |
return _getObject(this, key); |