| Index: lib/dom/scripts/systemhtml.py
|
| diff --git a/lib/dom/scripts/systemhtml.py b/lib/dom/scripts/systemhtml.py
|
| index 0f9f4a6e2316f92b1a68cc088ccfd5253cc7b3ba..18c7176451aa1c179ecc3d49277737d7a07032e2 100644
|
| --- a/lib/dom/scripts/systemhtml.py
|
| +++ b/lib/dom/scripts/systemhtml.py
|
| @@ -1394,12 +1394,10 @@ class HtmlDartiumInterfaceGenerator(object):
|
| self._members_emitter.Emit(
|
| '\n'
|
| ' $TYPE get on() {\n'
|
| - ' if (_on == null) _on = new $TYPE($EVENTTARGET);\n'
|
| + ' if (_on == null) _on = new $TYPE(this);\n'
|
| ' return _on;\n'
|
| ' }\n',
|
| - TYPE=events_class,
|
| - EVENTTARGET='_wrappedDocumentPtr' if self._interface.id == 'Document'
|
| - else 'this')
|
| + TYPE=events_class)
|
|
|
| def _SecondaryContext(self, interface):
|
| if interface is not self._current_secondary_parent:
|
|
|