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

Unified Diff: pkg/web_components/lib/interop.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/web_components/lib/dart_support.js ('k') | pkg/web_components/lib/platform.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/web_components/lib/interop.dart
===================================================================
--- pkg/web_components/lib/interop.dart (revision 37373)
+++ pkg/web_components/lib/interop.dart (working copy)
@@ -31,3 +31,13 @@
dartType, extendsTag: extendsTag);
_doc.callMethod('_registerDartTypeUpgrader', [tagName, upgrader.upgrade]);
}
+
+/// This function is mainly used to save resources. By default, we save a log of
+/// elements that are created but have no Dart type associated with them. This
+/// is so we can upgrade them as soon as [registerDartType] is invoked. This
+/// function can be called to indicate that we no longer are interested in
+/// logging element creations and that it is sufficient to only upgrade new
+/// elements as they are being created. Typically this is called after the last
+/// call to [registerDartType] or as soon as you know that no element will be
+/// created until the call to [registerDartType] is made.
+void onlyUpgradeNewElements() => _doc.callMethod('_onlyUpgradeNewElements');
« no previous file with comments | « pkg/web_components/lib/dart_support.js ('k') | pkg/web_components/lib/platform.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698