Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1022)

Unified Diff: pkg/polymer/lib/src/instance.dart

Issue 53743002: introduce ObservableList.listChanges to keep list changes separate from property changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/observe/test/observe_test_utils.dart ('k') | pkg/polymer_expressions/lib/eval.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « pkg/observe/test/observe_test_utils.dart ('k') | pkg/polymer_expressions/lib/eval.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698