| Index: client/dom/scripts/dartgenerator.py
|
| diff --git a/client/dom/scripts/dartgenerator.py b/client/dom/scripts/dartgenerator.py
|
| index 243e3fa528296615d79a1859e7fe3e8cc84a9175..1f23922a826707dee58baf819851fa0972ed1e7f 100755
|
| --- a/client/dom/scripts/dartgenerator.py
|
| +++ b/client/dom/scripts/dartgenerator.py
|
| @@ -1640,18 +1640,22 @@ class WrappingInterfaceGenerator(object):
|
| PARAMS=', '.join(['_this'] + arg_names),
|
| ARGS=', '.join(['_this.$dom'] + unwrap_args))
|
| else:
|
| + if info.js_name in ['delete', 'continue']:
|
| + access = "['%s']" % info.js_name
|
| + else:
|
| + access = ".%s" % info.js_name
|
| self._js_code.Emit(
|
| '\n'
|
| 'function native_$(CLASS)_$(NATIVENAME)($PARAMS) {\n'
|
| ' try {\n'
|
| - ' return __dom_wrap(_this.$dom.$JSNAME($ARGS));\n'
|
| + ' return __dom_wrap(_this.$dom$ACCESS($ARGS));\n'
|
| ' } catch (e) {\n'
|
| ' throw __dom_wrap_exception(e);\n'
|
| ' }\n'
|
| '}\n',
|
| CLASS=self._class_name,
|
| NAME=info.name,
|
| - JSNAME=info.js_name,
|
| + ACCESS=access,
|
| NATIVENAME=native_name,
|
| PARAMS=', '.join(['_this'] + arg_names),
|
| ARGS=', '.join(unwrap_args))
|
|
|