| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 var secretWindow; | 5 Window secretWindow; |
| 6 var secretDocument; | 6 Document secretDocument; |
| 7 | 7 |
| 8 Window get window() { | 8 Window get window() { |
| 9 if (secretWindow === null) { | 9 if (secretWindow === null) { |
| 10 LevelDom.initialize(dom.window); | 10 LevelDom.initialize(); |
| 11 } | 11 } |
| 12 return secretWindow; | 12 return secretWindow; |
| 13 } | 13 } |
| 14 | 14 |
| 15 Document get document() { | 15 Document get document() { |
| 16 if (secretWindow === null) { | 16 if (secretWindow === null) { |
| 17 LevelDom.initialize(dom.window); | 17 LevelDom.initialize(); |
| 18 } | 18 } |
| 19 return secretDocument; | 19 return secretDocument; |
| 20 } | 20 } |
| OLD | NEW |