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

Unified Diff: lib/src/bind_property.dart

Issue 1838473002: fix observe package to be strong mode clean (Closed) Base URL: git@github.com:dart-lang/observe.git@master
Patch Set: Created 4 years, 9 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 | « CHANGELOG.md ('k') | lib/transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/bind_property.dart
diff --git a/lib/src/bind_property.dart b/lib/src/bind_property.dart
index 805507a94c5101b043c114b2e76234318c4f27d3..202859d0014200dadfeaa6a968d5d14dbcebd0e1 100644
--- a/lib/src/bind_property.dart
+++ b/lib/src/bind_property.dart
@@ -29,8 +29,7 @@ StreamSubscription onPropertyChange(
Observable source, Symbol sourceName, void callback()) {
return source.changes.listen((records) {
for (var record in records) {
- if (record is PropertyChangeRecord &&
- (record as PropertyChangeRecord).name == sourceName) {
+ if (record is PropertyChangeRecord && record.name == sourceName) {
callback();
break;
}
« no previous file with comments | « CHANGELOG.md ('k') | lib/transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698