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

Unified Diff: web_components/lib/src/custom_element.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/polyfill.dart ('k') | web_components/lib/src/init.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web_components/lib/src/custom_element.dart
diff --git a/web_components/lib/src/custom_element.dart b/web_components/lib/src/custom_element.dart
deleted file mode 100644
index 1678fcc57a13dffb061de341e39b63920fe464eb..0000000000000000000000000000000000000000
--- a/web_components/lib/src/custom_element.dart
+++ /dev/null
@@ -1,22 +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.custom_element;
-
-import 'dart:html' show document;
-import 'package:initialize/initialize.dart';
-
-/// Annotation which registers a custom element with the main document.
-class CustomElement implements Initializer<Type> {
- /// The tag you want to register the class to handle.
- final String tag;
-
- /// If this element extends a native html element, then this is the tag that
- /// represents that element.
- final String extendsTag;
-
- const CustomElement(this.tag, {this.extendsTag});
-
- void initialize(Type t) =>
- document.registerElement(tag, t, extendsTag: extendsTag);
-}
« no previous file with comments | « web_components/lib/polyfill.dart ('k') | web_components/lib/src/init.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698