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

Unified Diff: sky/framework/fn.dart

Issue 983903003: Re-work MaterialComponent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 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 | « sky/framework/components/radio.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/fn.dart
diff --git a/sky/framework/fn.dart b/sky/framework/fn.dart
index 06853293f72cf3e96ffc5fc26815178110e96386..73d13547325c5c22dcfff870c8632e187183c7f4 100644
--- a/sky/framework/fn.dart
+++ b/sky/framework/fn.dart
@@ -258,6 +258,9 @@ abstract class Element extends Node {
return false;
}
+ if (this == oldElement)
+ return false;
+
_root = oldElement._root;
oldElement._root = null;
sky.Element root = (_root as sky.Element);
« no previous file with comments | « sky/framework/components/radio.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698