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

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

Issue 27602002: Renaming Node.document back to Node.ownerDocument (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
Index: pkg/polymer/lib/src/instance.dart
diff --git a/pkg/polymer/lib/src/instance.dart b/pkg/polymer/lib/src/instance.dart
index dd5c349cbcc30649f669b12731c57902579adae5..e5f3234f516495ab49120a2f6a1c149a94972532 100644
--- a/pkg/polymer/lib/src/instance.dart
+++ b/pkg/polymer/lib/src/instance.dart
@@ -133,7 +133,7 @@ abstract class Polymer implements Element {
// https://groups.google.com/d/msg/polymer-dev/W0ZUpU5caIM/v5itFnvnehEJ
// Same issue with inserted and removed.
void polymerCreated() {
- if (this.document.window != null || alwaysPrepare ||
+ if (this.ownerDocument.window != null || alwaysPrepare ||
_preparingElements > 0) {
prepareElement();
}

Powered by Google App Engine
This is Rietveld 408576698