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

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

Issue 335943003: merge to trunk all changes from 36817 until 37378 under the packages: polymer, (Closed) Base URL: http://dart.googlecode.com/svn/trunk/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
===================================================================
--- pkg/template_binding/lib/template_binding.dart (revision 37373)
+++ pkg/template_binding/lib/template_binding.dart (working copy)
@@ -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: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 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