Chromium Code Reviews| Index: pkg/template_binding/lib/template_binding.dart |
| diff --git a/pkg/template_binding/lib/template_binding.dart b/pkg/template_binding/lib/template_binding.dart |
| index c8bd3b60516bb42d4cd1aaadc0bb0166a97b28f9..b1ef7b5236b686b4ca647a42fcb14b1f770fc929 100644 |
| --- a/pkg/template_binding/lib/template_binding.dart |
| +++ b/pkg/template_binding/lib/template_binding.dart |
| @@ -24,11 +24,17 @@ import 'dart:html'; |
| import 'dart:svg' show SvgSvgElement; |
| import 'package:observe/observe.dart'; |
| +import 'src/binding_delegate.dart'; |
| +import 'src/node_binding.dart'; |
| import 'src/list_diff.dart' show calculateSplices, ListChangeDelta; |
| +export 'src/binding_delegate.dart'; |
| +export 'src/node_binding.dart' show NodeBinding; |
| + |
| part 'src/element.dart'; |
| part 'src/input_bindings.dart'; |
| part 'src/input_element.dart'; |
| +part 'src/instance_binding_map.dart'; |
| part 'src/node.dart'; |
| part 'src/select_element.dart'; |
| part 'src/template.dart'; |
| @@ -141,7 +147,7 @@ bool _isAttributeTemplate(Element n) => n.attributes.containsKey('template') && |
| * and COL), OPTION, and OPTGROUP. |
| */ |
| bool isSemanticTemplate(Node n) => n is Element && |
| - ((n as Element).localName == 'template' || _isAttributeTemplate(n)); |
| + (n.localName == 'template' || _isAttributeTemplate(n)); |
|
Siggi Cherem (dart-lang)
2013/10/29 21:00:07
you might want to put the cast back to avoid warni
Jennifer Messerly
2013/10/29 23:07:19
the tool now reports it as a redundant cast. not s
|
| // TODO(jmesserly): const set would be better |
| const _SEMANTIC_TEMPLATE_TAGS = const { |