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

Unified Diff: sdk/lib/js/dartium/js_dartium.dart

Issue 1380963003: Preserve identity of Dart wrappers on DOM objects (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
Index: sdk/lib/js/dartium/js_dartium.dart
diff --git a/sdk/lib/js/dartium/js_dartium.dart b/sdk/lib/js/dartium/js_dartium.dart
index b6c71981cd4590eeba8091d0df69f7d54730c200..462d2697e956693fb6ead40389d13097190e37ae 100644
--- a/sdk/lib/js/dartium/js_dartium.dart
+++ b/sdk/lib/js/dartium/js_dartium.dart
@@ -489,6 +489,12 @@ class JsObject extends NativeFieldWrapperClass2 {
JsObject.internal();
/**
+ * If this JsObject is wrapped, e.g. DOM objects, then we can save the
+ * wrapper here and preserve its identity.
+ */
+ var wrapper;
Jacob 2015/10/01 21:07:47 this needs to be private
+
+ /**
* Constructs a new JavaScript object from [constructor] and returns a proxy
* to it.
*/

Powered by Google App Engine
This is Rietveld 408576698