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

Unified Diff: packages/polymer/lib/src/initializers.dart

Issue 2312183003: Removed Polymer from Observatory deps (Closed)
Patch Set: Created 4 years, 3 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 | « packages/polymer/lib/src/events.dart ('k') | packages/polymer/lib/src/instance.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/polymer/lib/src/initializers.dart
diff --git a/packages/polymer/lib/src/initializers.dart b/packages/polymer/lib/src/initializers.dart
deleted file mode 100644
index cec4f8eef539b03f4fe8c3cceb4d595f7692fb43..0000000000000000000000000000000000000000
--- a/packages/polymer/lib/src/initializers.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2013, 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.
-part of polymer;
-
-/// Automatically registers a polymer element.
-class CustomTag implements Initializer<Type> {
- final String tagName;
- const CustomTag(this.tagName);
-
- @override
- initialize(Type t) => Polymer.register(tagName, t);
-}
-
-/// Calls a zero argument [Function] after [Polymer.onReady] completes.
-typedef dynamic _ZeroArg();
-class _WhenPolymerReady implements Initializer<_ZeroArg> {
- const _WhenPolymerReady();
-
- @override
- void initialize(_ZeroArg f) {
- Polymer.onReady.then((_) => f());
- }
-}
-
-const whenPolymerReady = const _WhenPolymerReady();
-
« no previous file with comments | « packages/polymer/lib/src/events.dart ('k') | packages/polymer/lib/src/instance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698