| 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..ef64f256d79d595a05fa9150355a396f95c89d93 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 use_idl_event_style
|
|
|
| from generator import AnalyzeOperation, ConstantOutputOrder, \
|
| DartDomNameOfAttribute, FindMatchingAttribute, IsDartCollectionType, \
|
| @@ -58,7 +59,7 @@ 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 use_idl_event_style:
|
| self.AddAttribute(attr, declare_only)
|
|
|
| # The implementation should define an indexer if the interface directly
|
|
|