Index: pkg/polymer/lib/src/instance.dart |
diff --git a/pkg/polymer/lib/src/instance.dart b/pkg/polymer/lib/src/instance.dart |
index 348a61fd06c687a6ada9a20b4828b0986bc2d57e..671d9e0080f776778bd225c90b1f9b387a93f582 100644 |
--- a/pkg/polymer/lib/src/instance.dart |
+++ b/pkg/polymer/lib/src/instance.dart |
@@ -574,7 +574,7 @@ abstract class Polymer implements Element, Observable, NodeBindExtension { |
_observeLog.fine('[$localName] observeArrayValue: register observer ' |
'$name'); |
} |
- var sub = (value as ObservableList).changes.listen((changes) { |
+ var sub = value.listChanges.listen((changes) { |
invokeMethod(callbackName, [old]); |
}); |
registerObserver('${MirrorSystem.getName(name)}__array', sub); |