44*/
55
66import { assign } from 'ember-utils' ;
7- import { deprecate } from 'ember-debug' ;
87import { get , set , run , computed } from 'ember-metal' ;
98import {
109 buildFakeRegistryWithDeprecations ,
@@ -14,8 +13,6 @@ import { environment } from 'ember-environment';
1413import { jQuery } from 'ember-views' ;
1514import 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
486482BootOptions . prototype . toEnvironment = function ( ) {
487483 let env = assign ( { } , environment ) ;
0 commit comments