| Index: lib/html/scripts/systemhtml.py
|
| diff --git a/lib/html/scripts/systemhtml.py b/lib/html/scripts/systemhtml.py
|
| index ec157338dbdc8476489cfc730e5eaba93705824a..697cbab8f6e4063dd49c8bb568e8a1750839888c 100644
|
| --- a/lib/html/scripts/systemhtml.py
|
| +++ b/lib/html/scripts/systemhtml.py
|
| @@ -698,7 +698,10 @@ class Dart2JSBackend(object):
|
| # TODO(sra): Use separate mixins for typed array implementations of List<T>.
|
| if self._interface.id != 'NodeList':
|
| template_file = 'immutable_list_mixin.darttemplate'
|
| - template = self._template_loader.Load(template_file)
|
| + has_contains = any(op.id == 'contains' for op in self._interface.operations)
|
| + template = self._template_loader.Load(
|
| + template_file,
|
| + {'DEFINE_CONTAINS': not has_contains})
|
| self._members_emitter.Emit(template, E=self._DartType(element_type))
|
|
|
| def AddAttribute(self, attribute, html_name, read_only):
|
|
|