Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: pkg/template_binding/lib/template_binding.dart

Issue 50203004: port TemplateBinding to ed3266266e751b5ab1f75f8e0509d0d5f0ef35d8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698