Skip to content

Commit a61c63f

Browse files
committed
Release v2.6.0.
1 parent cc53851 commit a61c63f

File tree

12 files changed

+241
-145
lines changed

12 files changed

+241
-145
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember",
3-
"version": "2.6.0-beta.4",
3+
"version": "2.6.0",
44
"license": "MIT",
55
"homepage": "https://github.com/emberjs/ember.js",
66
"main": [

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ember",
33
"repo": "components/ember",
4-
"version": "2.6.0-beta.4",
4+
"version": "2.6.0",
55
"license": "MIT",
66
"homepage": "https://github.com/emberjs/ember.js",
77
"main": "ember.debug.js",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
}
2626
}
2727
},
28-
"version": "2.6.0-beta.4"
28+
"version": "2.6.0"
2929
}

ember-docs.json

Lines changed: 42 additions & 28 deletions
Large diffs are not rendered by default.

ember-runtime.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

1212
var enifed, requireModule, require, Ember;
@@ -1484,13 +1484,15 @@ enifed('container/container', ['exports', 'ember-metal/core', 'ember-metal/debug
14841484

14851485
validationCache = container.validationCache;
14861486

1487-
// Ensure that all lazy injections are valid at instantiation time
1488-
if (!validationCache[fullName] && typeof factory._lazyInjections === 'function') {
1489-
lazyInjections = factory._lazyInjections();
1490-
lazyInjections = container.registry.normalizeInjectionsHash(lazyInjections);
1487+
_emberMetalDebug.runInDebug(function () {
1488+
// Ensure that all lazy injections are valid at instantiation time
1489+
if (!validationCache[fullName] && typeof factory._lazyInjections === 'function') {
1490+
lazyInjections = factory._lazyInjections();
1491+
lazyInjections = container.registry.normalizeInjectionsHash(lazyInjections);
14911492

1492-
container.registry.validateInjections(lazyInjections);
1493-
}
1493+
container.registry.validateInjections(lazyInjections);
1494+
}
1495+
});
14941496

14951497
validationCache[fullName] = true;
14961498

@@ -4781,7 +4783,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
47814783

47824784
@class Ember
47834785
@static
4784-
@version 2.6.0-beta.4
4786+
@version 2.6.0
47854787
@public
47864788
*/
47874789

@@ -4823,11 +4825,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
48234825

48244826
@property VERSION
48254827
@type String
4826-
@default '2.6.0-beta.4'
4828+
@default '2.6.0'
48274829
@static
48284830
@public
48294831
*/
4830-
Ember.VERSION = '2.6.0-beta.4';
4832+
Ember.VERSION = '2.6.0';
48314833

48324834
/**
48334835
The hash of environment variables used to control various configuration
@@ -18509,7 +18511,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-metal/debug', 'emb
1850918511
for (var i = 0, l = props.length; i < l; i++) {
1851018512
var properties = props[i];
1851118513

18512-
_emberMetalDebug.assert('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create seperately instead.', !(properties instanceof _emberMetalMixin.Mixin));
18514+
_emberMetalDebug.assert('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _emberMetalMixin.Mixin));
1851318515

1851418516
if (typeof properties !== 'object' && properties !== undefined) {
1851518517
throw new _emberMetalError.default('Ember.Object.create only accepts objects.');

ember-template-compiler.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

1212
var enifed, requireModule, require, Ember;
@@ -3988,7 +3988,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
39883988

39893989
@class Ember
39903990
@static
3991-
@version 2.6.0-beta.4
3991+
@version 2.6.0
39923992
@public
39933993
*/
39943994

@@ -4030,11 +4030,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
40304030

40314031
@property VERSION
40324032
@type String
4033-
@default '2.6.0-beta.4'
4033+
@default '2.6.0'
40344034
@static
40354035
@public
40364036
*/
4037-
Ember.VERSION = '2.6.0-beta.4';
4037+
Ember.VERSION = '2.6.0';
40384038

40394039
/**
40404040
The hash of environment variables used to control various configuration
@@ -12826,7 +12826,7 @@ enifed('ember-template-compiler/system/compile_options', ['exports', 'ember-meta
1282612826
options.buildMeta = function buildMeta(program) {
1282712827
return {
1282812828
fragmentReason: fragmentReason(program),
12829-
revision: 'Ember@2.6.0-beta.4',
12829+
revision: 'Ember@2.6.0',
1283012830
loc: program.loc,
1283112831
moduleName: options.moduleName
1283212832
};

ember-testing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

1212
var enifed, requireModule, require, Ember;

ember.debug.js

Lines changed: 57 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

1212
var 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

Comments
 (0)