OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library polymer_interop.src.js_element_proxy; | 4 library polymer_interop.src.js_element_proxy; |
5 | 5 |
6 import 'dart:html' show Element, DocumentFragment; | 6 import 'dart:html' show Element, DocumentFragment; |
7 import 'dart:js' as js; | 7 import 'dart:js' as js; |
8 import 'package:web_components/web_components.dart' | 8 import 'package:web_components/web_components.dart' |
9 show CustomElementProxyMixin; | 9 show CustomElementProxyMixin; |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 /// deactivate the element's bindings and allow its memory to be reclaimed. | 54 /// deactivate the element's bindings and allow its memory to be reclaimed. |
55 void unbindAll() => jsElement.callMethod('unbindAll', []); | 55 void unbindAll() => jsElement.callMethod('unbindAll', []); |
56 | 56 |
57 /// Call in `detached` to prevent the element from unbinding when it is | 57 /// Call in `detached` to prevent the element from unbinding when it is |
58 /// detached from the dom. The element is unbound as a cleanup step that | 58 /// detached from the dom. The element is unbound as a cleanup step that |
59 /// allows its memory to be reclaimed. If `cancelUnbindAll` is used, consider | 59 /// allows its memory to be reclaimed. If `cancelUnbindAll` is used, consider |
60 ///calling `unbindAll` when the element is no longer needed. This will allow | 60 ///calling `unbindAll` when the element is no longer needed. This will allow |
61 ///its memory to be reclaimed. | 61 ///its memory to be reclaimed. |
62 void cancelUnbindAll() => jsElement.callMethod('cancelUnbindAll', []); | 62 void cancelUnbindAll() => jsElement.callMethod('cancelUnbindAll', []); |
63 } | 63 } |
OLD | NEW |