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

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

Issue 307793002: update polymer, nodebind, and templatebinding (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
« no previous file with comments | « pkg/template_binding/lib/src/text_area_element.dart ('k') | pkg/template_binding/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97daeabad53b7e1dffa7ae95c3eebf90c1d848d5..1e8b3a8509b17a9e30101a58b4bfc2522c2e0de1 100644
--- a/pkg/template_binding/lib/template_binding.dart
+++ b/pkg/template_binding/lib/template_binding.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -24,11 +24,9 @@ import 'dart:html';
import 'dart:svg' show SvgSvgElement;
import 'package:observe/observe.dart';
-import 'src/binding_delegate.dart';
import 'src/mustache_tokens.dart';
-export 'src/binding_delegate.dart';
-
+part 'src/binding_delegate.dart';
part 'src/element.dart';
part 'src/input_bindings.dart';
part 'src/input_element.dart';
@@ -155,6 +153,17 @@ bool _isHtmlTemplate(Element el) => el.tagName == 'TEMPLATE' &&
bool isSemanticTemplate(Node n) => n is Element &&
(_isHtmlTemplate(n) || _isAttributeTemplate(n) || _isSvgTemplate(n));
+/** Returns true if this is the staging document for a template. */
+bool isTemplateStagingDocument(Document d) => _isStagingDocument[d] == true;
+
+
+/**
+ * True to enable [NodeBindingExtension.bindings]. This can be used by tools
+ * such as UI builders to easily inspect live bindings. Defaults to false for
+ * performance reasons.
+ */
+bool enableBindingsReflection = false;
+
// TODO(jmesserly): const set would be better
const _SEMANTIC_TEMPLATE_TAGS = const {
'caption': null,
« no previous file with comments | « pkg/template_binding/lib/src/text_area_element.dart ('k') | pkg/template_binding/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698