| 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 DOM elements. | 6 * Custom DOM elements. |
| 7 * | 7 * |
| 8 * This library provides access to the Polymer project's | 8 * This library provides access to the Polymer project's |
| 9 * [Custom Elements] | 9 * [Custom Elements] |
| 10 * (http://www.polymer-project.org/platform/custom-elements.html) | 10 * (http://www.polymer-project.org/platform/custom-elements.html) |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 return root; | 164 return root; |
| 165 } | 165 } |
| 166 | 166 |
| 167 getShadowRoot(String componentName) => _generatedRoots[componentName]; | 167 getShadowRoot(String componentName) => _generatedRoots[componentName]; |
| 168 | 168 |
| 169 /** | 169 /** |
| 170 * Invoked when this component gets created. | 170 * Invoked when this component gets created. |
| 171 * Note that [root] will be a [ShadowRoot] if the browser supports Shadow DOM. | 171 * Note that [root] will be a [ShadowRoot] if the browser supports Shadow DOM. |
| 172 */ | 172 */ |
| 173 void created() {} | 173 void created() {} |
| 174 // Added for analyzer warnings |
| 175 @deprecated |
| 176 void createdCallback() {} |
| 174 | 177 |
| 175 /** Invoked when this component gets inserted in the DOM tree. */ | 178 /** Invoked when this component gets inserted in the DOM tree. */ |
| 176 void inserted() {} | 179 void inserted() {} |
| 177 @deprecated | 180 @deprecated |
| 178 void enteredView() {} | 181 void enteredView() {} |
| 179 | 182 |
| 180 /** Invoked when this component is removed from the DOM tree. */ | 183 /** Invoked when this component is removed from the DOM tree. */ |
| 181 void removed() {} | 184 void removed() {} |
| 182 @deprecated | 185 @deprecated |
| 183 void leftView() {} | 186 void leftView() {} |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 for (var removed in record.removedNodes) { | 646 for (var removed in record.removedNodes) { |
| 644 if (identical(node, removed)) { | 647 if (identical(node, removed)) { |
| 645 observer.disconnect(); | 648 observer.disconnect(); |
| 646 element.removed(); | 649 element.removed(); |
| 647 return; | 650 return; |
| 648 } | 651 } |
| 649 } | 652 } |
| 650 } | 653 } |
| 651 }).observe(element.parentNode, childList: true); | 654 }).observe(element.parentNode, childList: true); |
| 652 } | 655 } |
| OLD | NEW |