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

Side by Side Diff: pkg/custom_element/lib/custom_element.dart

Issue 23441054: one-liners for a few polymer-related libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweak Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/mdv/lib/mdv.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Custom Elements let authors define their own elements. Authors associate code 6 * Custom DOM elements.
7 * with custom tag names, and then use those custom tag names as they would any 7 *
8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> 8 * This library provides access to the Polymer project's
9 * for more information. 9 * [Custom Elements]
10 * (http://www.polymer-project.org/platform/custom-elements.html)
11 * API, which lets you define your own elements. With custom elements, you
12 * associate code with custom tag names, and then use those custom tag names
13 * as you would any standard tag. For more information, see the
14 * [Polymer.dart homepage](https://www.dartlang.org/polymer-dart/) and its
15 * [custom element example]
16 * (https://www.dartlang.org/polymer-dart/#custom-elements).
10 */ 17 */
11 library custom_element; 18 library custom_element;
12 19
13 import 'dart:async'; 20 import 'dart:async';
14 import 'dart:html'; 21 import 'dart:html';
15 import 'package:mdv/mdv.dart' as mdv; 22 import 'package:mdv/mdv.dart' as mdv;
16 import 'package:meta/meta.dart'; 23 import 'package:meta/meta.dart';
17 import 'src/custom_tag_name.dart'; 24 import 'src/custom_tag_name.dart';
18 25
19 // TODO(jmesserly): replace with a real custom element polyfill. 26 // TODO(jmesserly): replace with a real custom element polyfill.
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 for (var removed in record.removedNodes) { 639 for (var removed in record.removedNodes) {
633 if (identical(node, removed)) { 640 if (identical(node, removed)) {
634 observer.disconnect(); 641 observer.disconnect();
635 element.removed(); 642 element.removed();
636 return; 643 return;
637 } 644 }
638 } 645 }
639 } 646 }
640 }).observe(element.parentNode, childList: true); 647 }).observe(element.parentNode, childList: true);
641 } 648 }
OLDNEW
« no previous file with comments | « no previous file | pkg/mdv/lib/mdv.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698