| Index: pkg/polymer/lib/src/instance.dart
|
| diff --git a/pkg/polymer/lib/src/instance.dart b/pkg/polymer/lib/src/instance.dart
|
| index 67f577b6a8ae966b4489886376cfa0a9d17d421e..2773c411e9a9824ada8c510baba5eff9270c173f 100644
|
| --- a/pkg/polymer/lib/src/instance.dart
|
| +++ b/pkg/polymer/lib/src/instance.dart
|
| @@ -264,6 +264,14 @@ class PolymerElement extends CustomElement with ObservableMixin {
|
| }
|
|
|
| // TODO(jmesserly): use stream or future here?
|
| + /**
|
| + * Run the `listener` callback *once*
|
| + * when `node` changes, or when its children or subtree changes.
|
| + *
|
| + *
|
| + * See [MutationObserver] if you want to listen to a stream of
|
| + * changes.
|
| + */
|
| void onMutation(Node node, void listener(MutationObserver obs)) {
|
| new MutationObserver((records, MutationObserver observer) {
|
| listener(observer);
|
|
|