| Index: tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate b/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| index 86fd0066dfcddd3501273a2223b0934cb3b74370..bc55c610720d7e83977e14ac2b16e82f86619159 100644
|
| --- a/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
|
| @@ -11,9 +11,9 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| try {
|
| var request;
|
| if (key != null) {
|
| - request = $dom_add(value, key);
|
| + request = _add(value, key);
|
| } else {
|
| - request = $dom_add(value);
|
| + request = _add(value);
|
| }
|
| return _completeRequest(request);
|
| } catch (e, stacktrace) {
|
| @@ -24,7 +24,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| @DomName('IDBObjectStore.clear')
|
| Future clear() {
|
| try {
|
| - return _completeRequest($dom_clear());
|
| + return _completeRequest(_clear());
|
| } catch (e, stacktrace) {
|
| return new Future.error(e, stacktrace);
|
| }
|
| @@ -33,7 +33,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| @DomName('IDBObjectStore.delete')
|
| Future delete(key_OR_keyRange){
|
| try {
|
| - return _completeRequest($dom_delete(key_OR_keyRange));
|
| + return _completeRequest(_delete(key_OR_keyRange));
|
| } catch (e, stacktrace) {
|
| return new Future.error(e, stacktrace);
|
| }
|
| @@ -44,9 +44,9 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| try {
|
| var request;
|
| if (key_OR_range != null) {
|
| - request = $dom_count(key_OR_range);
|
| + request = _count(key_OR_range);
|
| } else {
|
| - request = $dom_count();
|
| + request = _count();
|
| }
|
| return _completeRequest(request);
|
| } catch (e, stacktrace) {
|
| @@ -59,9 +59,9 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| try {
|
| var request;
|
| if (key != null) {
|
| - request = $dom_put(value, key);
|
| + request = _put(value, key);
|
| } else {
|
| - request = $dom_put(value);
|
| + request = _put(value);
|
| }
|
| return _completeRequest(request);
|
| } catch (e, stacktrace) {
|
| @@ -72,7 +72,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| @DomName('IDBObjectStore.get')
|
| Future getObject(key) {
|
| try {
|
| - var request = $dom_get(key);
|
| + var request = _get(key);
|
|
|
| return _completeRequest(request);
|
| } catch (e, stacktrace) {
|
| @@ -117,9 +117,9 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| // TODO: try/catch this and return a stream with an immediate error.
|
| var request;
|
| if (direction == null) {
|
| - request = $dom_openCursor(key_OR_range);
|
| + request = _openCursor(key_OR_range);
|
| } else {
|
| - request = $dom_openCursor(key_OR_range, direction);
|
| + request = _openCursor(key_OR_range, direction);
|
| }
|
| return _cursorStreamFromResult(request, autoAdvance);
|
| }
|
| @@ -134,7 +134,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| options['multiEntry'] = multiEntry;
|
| }
|
|
|
| - return $dom_createIndex(name, keyPath, options);
|
| + return _createIndex(name, keyPath, options);
|
| }
|
|
|
| $!MEMBERS
|
|
|