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

Unified Diff: dart/pkg/web_components/lib/interop.dart

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
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 | « dart/pkg/web_components/lib/dart_support.js ('k') | dart/pkg/web_components/lib/platform.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/web_components/lib/interop.dart
===================================================================
--- dart/pkg/web_components/lib/interop.dart (revision 37358)
+++ dart/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 | « dart/pkg/web_components/lib/dart_support.js ('k') | dart/pkg/web_components/lib/platform.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698