Skip to content

Commit 5c1c6f8

Browse files
authored
Merge pull request #15648 from bekzod/app-instance-cleanup
remove redundant `BootOptions` variable
2 parents bc217b9 + 83e2e4d commit 5c1c6f8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/ember-application/lib/system/application-instance.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55

66
import { assign } from 'ember-utils';
7-
import { deprecate } from 'ember-debug';
87
import { get, set, run, computed } from 'ember-metal';
98
import {
109
buildFakeRegistryWithDeprecations,
@@ -14,8 +13,6 @@ import { environment } from 'ember-environment';
1413
import { jQuery } from 'ember-views';
1514
import EngineInstance from './engine-instance';
1615

17-
let BootOptions;
18-
1916
/**
2017
The `ApplicationInstance` encapsulates all of the stateful aspects of a
2118
running `Application`.
@@ -220,8 +217,7 @@ const ApplicationInstance = EngineInstance.extend({
220217
@return {String} the current URL
221218
*/
222219
getURL() {
223-
let router = get(this, 'router');
224-
return get(router, 'url');
220+
return get(this, 'router.url');
225221
},
226222

227223
// `instance.visit(url)` should eventually replace `instance.handleURL()`;
@@ -323,7 +319,7 @@ ApplicationInstance.reopenClass({
323319
@namespace Ember.ApplicationInstance
324320
@public
325321
*/
326-
BootOptions = function BootOptions(options = {}) {
322+
function BootOptions(options = {}) {
327323
/**
328324
Provide a specific instance of jQuery. This is useful in conjunction with
329325
the `document` option, as it allows you to use a copy of `jQuery` that is
@@ -481,7 +477,7 @@ BootOptions = function BootOptions(options = {}) {
481477
if (options.isInteractive !== undefined) {
482478
this.isInteractive = !!options.isInteractive;
483479
}
484-
};
480+
}
485481

486482
BootOptions.prototype.toEnvironment = function() {
487483
let env = assign({}, environment);

0 commit comments

Comments
 (0)