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

Unified Diff: web_components/lib/src/init.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 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
« no previous file with comments | « web_components/lib/src/custom_element.dart ('k') | web_components/lib/src/mirror_initializer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web_components/lib/src/init.dart
diff --git a/web_components/lib/src/init.dart b/web_components/lib/src/init.dart
deleted file mode 100644
index d2906ef8f13c928e0ada77662c7d4eafdf76972d..0000000000000000000000000000000000000000
--- a/web_components/lib/src/init.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2015, 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.
-library web_components.src.init;
-
-import 'dart:async';
-import 'package:initialize/initialize.dart' show InitializerFilter;
-import 'package:web_components/web_components.dart';
-import 'mirror_initializer.dart' as init;
-export 'mirror_initializer.dart' show deployMode;
-
-/// Performs html import aware initialization by crawling all imported documents
-/// and initializing any script tags which appear in them.
-///
-/// By default, this will run all [HtmlImport] initializers, followed in a 2nd
-/// phase by all [CustomElement] and [CustomElementProxy] initializers. Then,
-/// unless [initAll] is [false], it will run all remaining initializers.
-///
-/// If a [typeFilter] or [customFilter] are supplied, only one phase is ran
-/// with the supplied filters.
-Future initWebComponents({List<Type> typeFilter, InitializerFilter customFilter,
- bool initAll: true}) {
- if (typeFilter != null || customFilter != null) {
- return init.run(typeFilter: typeFilter, customFilter: customFilter);
- } else {
- return init
- .run(typeFilter: [HtmlImport])
- .then((_) => init.run(typeFilter: [CustomElement, CustomElementProxy]))
- .then((_) => initAll ? init.run() : null);
- }
-}
« no previous file with comments | « web_components/lib/src/custom_element.dart ('k') | web_components/lib/src/mirror_initializer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698