Skip to content

Commit b2297b4

Browse files
authored
Merge pull request #147 from bekzod/remove-booted-flag
using internal flag `_booted` instead of `instanceBooted`
2 parents 85d6d91 + 5ba4258 commit b2297b4

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/ember-app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ class EmberApp {
237237

238238
return instance.boot(bootOptions);
239239
})
240-
.then(() => result.instanceBooted = true)
241240
.then(() => instance.visit(path, bootOptions))
242241
.then(() => fastbootInfo.deferredPromise)
243242
.then(() => instance);

src/result.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);
1010
*/
1111
class Result {
1212
constructor(options) {
13-
this.instanceBooted = false;
1413
this._instanceDestroyed = false;
1514
this._doc = options.doc;
1615
this._html = options.html;
@@ -85,7 +84,7 @@ class Result {
8584
}
8685

8786
_finalizeMetadata(instance) {
88-
if (this.instanceBooted) {
87+
if (instance._booted) {
8988
this.url = instance.getURL();
9089
}
9190

0 commit comments

Comments
 (0)