Chromium Code Reviews| 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 | |
|
mem
2013/09/11 20:05:46
are we capitalizing Custom Element?
Kathy Walrath
2013/09/11 20:37:25
Polymer is, but that's yucky. Maybe we can capital
| |
| 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](http://www.dartlang.org/polymer-dart/). | |
|
Jennifer Messerly
2013/09/11 19:51:16
actually, suggestion: link to https://www.dartlang
Kathy Walrath
2013/09/11 20:37:25
Done.
| |
| 10 */ | 15 */ |
| 11 library custom_element; | 16 library custom_element; |
| 12 | 17 |
| 13 import 'dart:async'; | 18 import 'dart:async'; |
| 14 import 'dart:html'; | 19 import 'dart:html'; |
| 15 import 'package:mdv/mdv.dart' as mdv; | 20 import 'package:mdv/mdv.dart' as mdv; |
| 16 import 'package:meta/meta.dart'; | 21 import 'package:meta/meta.dart'; |
| 17 import 'src/custom_tag_name.dart'; | 22 import 'src/custom_tag_name.dart'; |
| 18 | 23 |
| 19 // TODO(jmesserly): replace with a real custom element polyfill. | 24 // 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) { | 637 for (var removed in record.removedNodes) { |
| 633 if (identical(node, removed)) { | 638 if (identical(node, removed)) { |
| 634 observer.disconnect(); | 639 observer.disconnect(); |
| 635 element.removed(); | 640 element.removed(); |
| 636 return; | 641 return; |
| 637 } | 642 } |
| 638 } | 643 } |
| 639 } | 644 } |
| 640 }).observe(element.parentNode, childList: true); | 645 }).observe(element.parentNode, childList: true); |
| 641 } | 646 } |
| OLD | NEW |