| Index: pkg/polymer/lib/src/instance.dart
|
| diff --git a/pkg/polymer/lib/src/instance.dart b/pkg/polymer/lib/src/instance.dart
|
| index bf55811e8c43e58752de6480b4df3862c1a34a10..6660951ebd42a3a8f5a99307d4a7ecd90e6cbd70 100644
|
| --- a/pkg/polymer/lib/src/instance.dart
|
| +++ b/pkg/polymer/lib/src/instance.dart
|
| @@ -129,7 +129,7 @@ abstract class Polymer implements Element {
|
| runJob(job, callback, wait);
|
|
|
| void polymerCreated() {
|
| - if (this.document.window != null || alwaysPrepare ||
|
| + if (this.ownerDocument.window != null || alwaysPrepare ||
|
| _preparingElements > 0) {
|
| prepareElement();
|
| }
|
|
|