66 * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
77 * @license Licensed under MIT license
88 * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9- * @version 2.6.0-beta.4
9+ * @version 2.6.0
1010 */
1111
1212var enifed, requireModule, require, Ember;
@@ -1480,13 +1480,15 @@ enifed('container/container', ['exports', 'ember-metal/core', 'ember-metal/debug
14801480
14811481 validationCache = container.validationCache;
14821482
1483- // Ensure that all lazy injections are valid at instantiation time
1484- if (!validationCache[fullName] && typeof factory._lazyInjections === 'function') {
1485- lazyInjections = factory._lazyInjections();
1486- lazyInjections = container.registry.normalizeInjectionsHash(lazyInjections);
1483+ _emberMetalDebug.runInDebug(function () {
1484+ // Ensure that all lazy injections are valid at instantiation time
1485+ if (!validationCache[fullName] && typeof factory._lazyInjections === 'function') {
1486+ lazyInjections = factory._lazyInjections();
1487+ lazyInjections = container.registry.normalizeInjectionsHash(lazyInjections);
14871488
1488- container.registry.validateInjections(lazyInjections);
1489- }
1489+ container.registry.validateInjections(lazyInjections);
1490+ }
1491+ });
14901492
14911493 validationCache[fullName] = true;
14921494
@@ -4055,10 +4057,13 @@ enifed('ember-application/system/application-instance', ['exports', 'ember-metal
40554057 }
40564058 };
40574059
4060+ var location = _emberMetalProperty_get.get(router, 'location');
4061+
40584062 // Keeps the location adapter's internal URL in-sync
4059- _emberMetalProperty_get.get(router, ' location') .setURL(url);
4063+ location.setURL(url);
40604064
4061- return router.handleURL(url).then(handleResolve, handleReject);
4065+ // getURL returns the set url with the rootURL stripped off
4066+ return router.handleURL(location.getURL()).then(handleResolve, handleReject);
40624067 }
40634068 });
40644069
@@ -10223,7 +10228,7 @@ enifed('ember-htmlbars/keywords/mut', ['exports', 'ember-metal/debug', 'ember-me
1022310228 mutate a value. For example:
1022410229
1022510230 ```handlebars
10226- {{my-child childClickCount=totalClicks click-count-change=(action (mut " totalClicks" ))}}
10231+ {{my-child childClickCount=totalClicks click-count-change=(action (mut totalClicks))}}
1022710232 ```
1022810233
1022910234 The child `Component` would invoke the action with the new click value:
@@ -10310,7 +10315,7 @@ enifed('ember-htmlbars/keywords/outlet', ['exports', 'ember-metal/debug', 'ember
1031010315
1031110316 'use strict';
1031210317
10313- _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.0-beta.4 ';
10318+ _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.0';
1031410319
1031510320 /**
1031610321 The `{{outlet}}` helper lets you specify where a child route will render in
@@ -15237,7 +15242,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
1523715242
1523815243 @class Ember
1523915244 @static
15240- @version 2.6.0-beta.4
15245+ @version 2.6.0
1524115246 @public
1524215247 */
1524315248
@@ -15279,11 +15284,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
1527915284
1528015285 @property VERSION
1528115286 @type String
15282- @default '2.6.0-beta.4 '
15287+ @default '2.6.0'
1528315288 @static
1528415289 @public
1528515290 */
15286- Ember.VERSION = '2.6.0-beta.4 ';
15291+ Ember.VERSION = '2.6.0';
1528715292
1528815293 /**
1528915294 The hash of environment variables used to control various configuration
@@ -24106,8 +24111,8 @@ enifed('ember-routing/location/history_location', ['exports', 'ember-metal/prope
2410624111 rootURL = rootURL.replace(/\/$/, '');
2410724112 baseURL = baseURL.replace(/\/$/, '');
2410824113
24109- // remove baseURL and rootURL from path
24110- var url = path.replace(baseURL, '').replace(rootURL, '');
24114+ // remove baseURL and rootURL from start of path
24115+ var url = path.replace(new RegExp('^' + baseURL) , '').replace(new RegExp('^' + rootURL) , '');
2411124116
2411224117 var search = location.search || '';
2411324118 url += search;
@@ -24264,7 +24269,7 @@ enifed('ember-routing/location/history_location', ['exports', 'ember-metal/prope
2426424269 getHash: _emberRoutingLocationApi.default._getHash
2426524270 });
2426624271});
24267- enifed('ember-routing/location/none_location', ['exports', 'ember-metal/property_get', 'ember-metal/property_set', 'ember-runtime/system/object'], function (exports, _emberMetalProperty_get, _emberMetalProperty_set, _emberRuntimeSystemObject) {
24272+ enifed('ember-routing/location/none_location', ['exports', 'ember-metal/debug', 'ember-metal/ property_get', 'ember-metal/property_set', 'ember-runtime/system/object'], function (exports, _emberMetalDebug , _emberMetalProperty_get, _emberMetalProperty_set, _emberRuntimeSystemObject) {
2426824273 'use strict';
2426924274
2427024275 /**
@@ -24287,14 +24292,35 @@ enifed('ember-routing/location/none_location', ['exports', 'ember-metal/property
2428724292 implementation: 'none',
2428824293 path: '',
2428924294
24295+ detect: function () {
24296+ var rootURL = this.rootURL;
24297+
24298+ _emberMetalDebug.assert('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/');
24299+ },
24300+
2429024301 /**
24291- Returns the current path.
24302+ Will be pre-pended to path.
24303+ @private
24304+ @property rootURL
24305+ @default '/'
24306+ */
24307+ rootURL: '/',
24308+
24309+ /**
24310+ Returns the current path without `rootURL`.
2429224311 @private
2429324312 @method getURL
2429424313 @return {String} path
2429524314 */
2429624315 getURL: function () {
24297- return _emberMetalProperty_get.get(this, 'path');
24316+ var path = _emberMetalProperty_get.get(this, 'path');
24317+ var rootURL = _emberMetalProperty_get.get(this, 'rootURL');
24318+
24319+ // remove trailing slashes if they exists
24320+ rootURL = rootURL.replace(/\/$/, '');
24321+
24322+ // remove rootURL from url
24323+ return path.replace(new RegExp('^' + rootURL), '');
2429824324 },
2429924325
2430024326 /**
@@ -24342,10 +24368,14 @@ enifed('ember-routing/location/none_location', ['exports', 'ember-metal/property
2434224368 @return {String} url
2434324369 */
2434424370 formatURL: function (url) {
24345- // The return value is not overly meaningful, but we do not want to throw
24346- // errors when test code renders templates containing {{action href=true}}
24347- // helpers.
24348- return url;
24371+ var rootURL = _emberMetalProperty_get.get(this, 'rootURL');
24372+
24373+ if (url !== '') {
24374+ // remove trailing slashes if they exists
24375+ rootURL = rootURL.replace(/\/$/, '');
24376+ }
24377+
24378+ return rootURL + url;
2434924379 }
2435024380 });
2435124381});
@@ -36031,7 +36061,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-metal/debug', 'emb
3603136061 for (var i = 0, l = props.length; i < l; i++) {
3603236062 var properties = props[i];
3603336063
36034- _emberMetalDebug.assert('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create seperately instead.', !(properties instanceof _emberMetalMixin.Mixin));
36064+ _emberMetalDebug.assert('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _emberMetalMixin.Mixin));
3603536065
3603636066 if (typeof properties !== 'object' && properties !== undefined) {
3603736067 throw new _emberMetalError.default('Ember.Object.create only accepts objects.');
@@ -39144,7 +39174,7 @@ enifed('ember-template-compiler/system/compile_options', ['exports', 'ember-meta
3914439174 options.buildMeta = function buildMeta(program) {
3914539175 return {
3914639176 fragmentReason: fragmentReason(program),
39147- revision: 'Ember@2.6.0-beta.4 ',
39177+ revision: 'Ember@2.6.0',
3914839178 loc: program.loc,
3914939179 moduleName: options.moduleName
3915039180 };
@@ -40718,7 +40748,7 @@ enifed('ember-views/components/component', ['exports', 'ember-metal/debug', 'emb
4071840748 ```handlebars
4071940749 <!-- app-profile template -->
4072040750 <h1>{{person.title}}</h1>
40721- {{! Executed in the components context. }}
40751+ {{! Executed in the component's context. }}
4072240752 {{yield}} {{! block contents }}
4072340753 ```
4072440754
@@ -40769,7 +40799,7 @@ enifed('ember-views/components/component', ['exports', 'ember-metal/debug', 'emb
4076940799 isComponent: true,
4077040800 /*
4077140801 This is set so that the proto inspection in appendTemplatedView does not
40772- think that it should set the components `context` to that of the parent view.
40802+ think that it should set the component's `context` to that of the parent view.
4077340803 */
4077440804 controller: null,
4077540805 context: null,
0 commit comments