| Index: sdk/lib/html/scripts/htmldartgenerator.py
|
| diff --git a/sdk/lib/html/scripts/htmldartgenerator.py b/sdk/lib/html/scripts/htmldartgenerator.py
|
| index d5d563013191482fce784a027bb206d0cd08c5fa..d894e8b4f25589474ceded6fdd7bcf5670cab0f6 100644
|
| --- a/sdk/lib/html/scripts/htmldartgenerator.py
|
| +++ b/sdk/lib/html/scripts/htmldartgenerator.py
|
| @@ -5,6 +5,7 @@
|
|
|
| """This module provides shared functionality for the system to generate
|
| dart:html APIs from the IDL database."""
|
| +from htmleventgenerator import html_override_event_classes
|
|
|
| from generator import AnalyzeOperation, ConstantOutputOrder, \
|
| DartDomNameOfAttribute, FindMatchingAttribute, IsDartCollectionType, \
|
| @@ -58,7 +59,8 @@ class HtmlDartGenerator(object):
|
| self.AddConstant(const)
|
|
|
| for attr in sorted(interface.attributes, ConstantOutputOrder):
|
| - if attr.type.id != 'EventListener':
|
| + if (attr.type.id != 'EventListener' or
|
| + interface.id in html_override_event_classes):
|
| self.AddAttribute(attr, declare_only)
|
|
|
| # The implementation should define an indexer if the interface directly
|
|
|