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

Unified Diff: pkg/observe/lib/src/path_observer.dart

Issue 355133002: switch Node.bind to interop (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/lib/src/observer_transform.dart ('k') | pkg/observe/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/path_observer.dart
diff --git a/pkg/observe/lib/src/path_observer.dart b/pkg/observe/lib/src/path_observer.dart
index d6bf8143ca9a6521d11bc46e0fb5352b95b20599..a95f2bbc06d8a2efd5f718f46a1c9fc2ff9f570f 100644
--- a/pkg/observe/lib/src/path_observer.dart
+++ b/pkg/observe/lib/src/path_observer.dart
@@ -41,7 +41,6 @@ class PathObserver extends _Observer implements Bindable {
/// Sets the value at this path.
void set value(Object newValue) {
if (_path != null) _path.setValueFrom(_object, newValue);
- _discardChanges();
}
int get _reportArgumentCount => 2;
@@ -509,7 +508,7 @@ abstract class _Observer extends Bindable {
void _connect();
void _disconnect();
bool get _isClosed;
- _check({bool skipChanges: false});
+ bool _check({bool skipChanges: false});
bool get _isOpen => _notifyCallback != null;
@@ -548,7 +547,9 @@ abstract class _Observer extends Bindable {
return _value;
}
- bool deliver() => _isOpen ? _dirtyCheck() : false;
+ void deliver() {
+ if (_isOpen) _dirtyCheck();
+ }
bool _dirtyCheck() {
var cycles = 0;
« no previous file with comments | « pkg/observe/lib/src/observer_transform.dart ('k') | pkg/observe/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698