| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |