ember-source 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-runtime.js +12 -91
- data/dist/ember-template-compiler.js +84 -111
- data/dist/ember-testing.js +34 -20
- data/dist/ember.debug.js +216 -119
- data/dist/ember.js +216 -119
- data/dist/ember.min.js +12 -12
- data/dist/ember.prod.js +177 -100
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a64832da928ba759d34ca11a71b6a81fb085945c
|
4
|
+
data.tar.gz: bf7d1155402e8e9ca5e6c668af7624bbf3f48991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ec912c3fb44d6d0a34c91e262ecf07f18f105d4e321a246d380c71a52fa61f2e3cd14ee473fd50191b457095fce2347302461280a8b9c1716ef1b48f5226d9c
|
7
|
+
data.tar.gz: 3a75bd4b15f3a57e7f9654acf5a2d495861e6f7ab0c72a80188eedd98ae44da32e14adaed641e6aa522a74b953417aa2d1149a74d19d95186cca92a2b355c971
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.5
|
data/dist/ember-runtime.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
7
7
|
* @license Licensed under MIT license
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
9
|
-
* @version 2.4.
|
9
|
+
* @version 2.4.5
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, require, requirejs, Ember;
|
@@ -3542,10 +3542,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3542
3542
|
|
3543
3543
|
var DEEP_EACH_REGEX = /\.@each\.[^.]+\./;
|
3544
3544
|
|
3545
|
-
// ..........................................................
|
3546
|
-
// COMPUTED PROPERTY
|
3547
|
-
//
|
3548
|
-
|
3549
3545
|
/**
|
3550
3546
|
A computed property transforms an object literal with object's accessor function(s) into a property.
|
3551
3547
|
|
@@ -3648,7 +3644,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3648
3644
|
|
3649
3645
|
@class ComputedProperty
|
3650
3646
|
@namespace Ember
|
3651
|
-
@constructor
|
3652
3647
|
@public
|
3653
3648
|
*/
|
3654
3649
|
function ComputedProperty(config, opts) {
|
@@ -3807,7 +3802,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3807
3802
|
@chainable
|
3808
3803
|
@public
|
3809
3804
|
*/
|
3810
|
-
|
3811
3805
|
ComputedPropertyPrototype.meta = function (meta) {
|
3812
3806
|
if (arguments.length === 0) {
|
3813
3807
|
return this._meta || {};
|
@@ -3838,33 +3832,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3838
3832
|
}
|
3839
3833
|
};
|
3840
3834
|
|
3841
|
-
/**
|
3842
|
-
Access the value of the function backing the computed property.
|
3843
|
-
If this property has already been cached, return the cached result.
|
3844
|
-
Otherwise, call the function passing the property name as an argument.
|
3845
|
-
|
3846
|
-
```javascript
|
3847
|
-
let Person = Ember.Object.extend({
|
3848
|
-
fullName: Ember.computed('firstName', 'lastName', function(keyName) {
|
3849
|
-
// the keyName parameter is 'fullName' in this case.
|
3850
|
-
return this.get('firstName') + ' ' + this.get('lastName');
|
3851
|
-
})
|
3852
|
-
});
|
3853
|
-
|
3854
|
-
|
3855
|
-
let tom = Person.create({
|
3856
|
-
firstName: 'Tom',
|
3857
|
-
lastName: 'Dale'
|
3858
|
-
});
|
3859
|
-
|
3860
|
-
tom.get('fullName') // 'Tom Dale'
|
3861
|
-
```
|
3862
|
-
|
3863
|
-
@method get
|
3864
|
-
@param {String} keyName The key being accessed.
|
3865
|
-
@return {Object} The return value of the function backing the CP.
|
3866
|
-
@public
|
3867
|
-
*/
|
3868
3835
|
ComputedPropertyPrototype.get = function (obj, keyName) {
|
3869
3836
|
if (this._volatile) {
|
3870
3837
|
return this._getter.call(obj, keyName);
|
@@ -3896,54 +3863,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3896
3863
|
return ret;
|
3897
3864
|
};
|
3898
3865
|
|
3899
|
-
/**
|
3900
|
-
Set the value of a computed property. If the function that backs your
|
3901
|
-
computed property does not accept arguments then the default action for
|
3902
|
-
setting would be to define the property on the current object, and set
|
3903
|
-
the value of the property to the value being set.
|
3904
|
-
|
3905
|
-
Generally speaking if you intend for your computed property to be set
|
3906
|
-
you should pass `set(key, value)` function in hash as argument to `Ember.computed()` along with `get(key)` function.
|
3907
|
-
|
3908
|
-
```javascript
|
3909
|
-
let Person = Ember.Object.extend({
|
3910
|
-
// these will be supplied by `create`
|
3911
|
-
firstName: null,
|
3912
|
-
lastName: null,
|
3913
|
-
|
3914
|
-
fullName: Ember.computed('firstName', 'lastName', {
|
3915
|
-
// getter
|
3916
|
-
get() {
|
3917
|
-
let firstName = this.get('firstName');
|
3918
|
-
let lastName = this.get('lastName');
|
3919
|
-
|
3920
|
-
return firstName + ' ' + lastName;
|
3921
|
-
},
|
3922
|
-
// setter
|
3923
|
-
set(key, value) {
|
3924
|
-
let [firstName, lastName] = value.split(' ');
|
3925
|
-
|
3926
|
-
this.set('firstName', firstName);
|
3927
|
-
this.set('lastName', lastName);
|
3928
|
-
|
3929
|
-
return value;
|
3930
|
-
}
|
3931
|
-
})
|
3932
|
-
});
|
3933
|
-
|
3934
|
-
let person = Person.create();
|
3935
|
-
|
3936
|
-
person.set('fullName', 'Peter Wagenet');
|
3937
|
-
person.get('firstName'); // 'Peter'
|
3938
|
-
person.get('lastName'); // 'Wagenet'
|
3939
|
-
```
|
3940
|
-
|
3941
|
-
@method set
|
3942
|
-
@param {String} keyName The key being accessed.
|
3943
|
-
@param {Object} newValue The new value being assigned.
|
3944
|
-
@return {Object} The return value of the function backing the CP.
|
3945
|
-
@public
|
3946
|
-
*/
|
3947
3866
|
ComputedPropertyPrototype.set = function computedPropertySetEntry(obj, keyName, value) {
|
3948
3867
|
if (this._readOnly) {
|
3949
3868
|
this._throwReadOnlyError(obj, keyName);
|
@@ -4865,8 +4784,6 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
4865
4784
|
Ember may overwrite this namespace and therefore, you should avoid adding any
|
4866
4785
|
new properties.
|
4867
4786
|
|
4868
|
-
You can also use the shorthand `Em` instead of `Ember`.
|
4869
|
-
|
4870
4787
|
At the heart of Ember is Ember-Runtime, a set of core functions that provide
|
4871
4788
|
cross-platform compatibility and object property observing. Ember-Runtime is
|
4872
4789
|
small and performance-focused so you can use it alongside other
|
@@ -4875,7 +4792,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
4875
4792
|
|
4876
4793
|
@class Ember
|
4877
4794
|
@static
|
4878
|
-
@version 2.4.
|
4795
|
+
@version 2.4.5
|
4879
4796
|
@public
|
4880
4797
|
*/
|
4881
4798
|
|
@@ -4917,11 +4834,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
4917
4834
|
|
4918
4835
|
@property VERSION
|
4919
4836
|
@type String
|
4920
|
-
@default '2.4.
|
4837
|
+
@default '2.4.5'
|
4921
4838
|
@static
|
4922
4839
|
@public
|
4923
4840
|
*/
|
4924
|
-
Ember.VERSION = '2.4.
|
4841
|
+
Ember.VERSION = '2.4.5';
|
4925
4842
|
|
4926
4843
|
/**
|
4927
4844
|
The hash of environment variables used to control various configuration
|
@@ -5749,9 +5666,11 @@ enifed('ember-metal/features', ['exports', 'ember-metal/core', 'ember-metal/assi
|
|
5749
5666
|
@since 1.1.0
|
5750
5667
|
@public
|
5751
5668
|
*/
|
5752
|
-
var
|
5669
|
+
var KNOWN_FEATURES = {};exports.KNOWN_FEATURES = KNOWN_FEATURES;
|
5753
5670
|
// jshint ignore:line
|
5671
|
+
var FEATURES = _emberMetalAssign.default(KNOWN_FEATURES, _emberMetalCore.default.ENV.FEATURES);
|
5754
5672
|
|
5673
|
+
exports.FEATURES = FEATURES;
|
5755
5674
|
/**
|
5756
5675
|
Determine whether the specified `feature` is enabled. Used by Ember's
|
5757
5676
|
build tools to exclude experimental features from beta/stable builds.
|
@@ -9104,9 +9023,9 @@ enifed('ember-metal/properties', ['exports', 'ember-metal/debug', 'ember-metal/f
|
|
9104
9023
|
Ember.defineProperty(contact, 'lastName', undefined, 'Jolley');
|
9105
9024
|
|
9106
9025
|
// define a computed property
|
9107
|
-
Ember.defineProperty(contact, 'fullName', Ember.computed(function() {
|
9026
|
+
Ember.defineProperty(contact, 'fullName', Ember.computed('firstName', 'lastName', function() {
|
9108
9027
|
return this.firstName+' '+this.lastName;
|
9109
|
-
})
|
9028
|
+
}));
|
9110
9029
|
```
|
9111
9030
|
|
9112
9031
|
@private
|
@@ -14975,7 +14894,7 @@ enifed('ember-runtime/mixins/array', ['exports', 'ember-metal/core', 'ember-meta
|
|
14975
14894
|
on the array. Just get an equivalent property on this object and it will
|
14976
14895
|
return an enumerable that maps automatically to the named key on the
|
14977
14896
|
member objects.
|
14978
|
-
|
14897
|
+
`@each` should only be used in a non-terminal context. Example:
|
14979
14898
|
```javascript
|
14980
14899
|
myMethod: computed('posts.@each.author', function(){
|
14981
14900
|
...
|
@@ -15444,6 +15363,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/property_get'
|
|
15444
15363
|
```
|
15445
15364
|
@property firstObject
|
15446
15365
|
@return {Object} the object or undefined
|
15366
|
+
@readOnly
|
15447
15367
|
@public
|
15448
15368
|
*/
|
15449
15369
|
firstObject: _emberMetalComputed.computed('[]', function () {
|
@@ -15472,6 +15392,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/property_get'
|
|
15472
15392
|
```
|
15473
15393
|
@property lastObject
|
15474
15394
|
@return {Object} the last object or undefined
|
15395
|
+
@readOnly
|
15475
15396
|
@public
|
15476
15397
|
*/
|
15477
15398
|
lastObject: _emberMetalComputed.computed('[]', function () {
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
7
7
|
* @license Licensed under MIT license
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
9
|
-
* @version 2.4.
|
9
|
+
* @version 2.4.5
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, require, requirejs, Ember;
|
@@ -1245,8 +1245,10 @@ enifed('ember-debug/deprecate', ['exports', 'ember-metal/core', 'ember-metal/err
|
|
1245
1245
|
|
1246
1246
|
/**
|
1247
1247
|
Display a deprecation warning with the provided message and a stack trace
|
1248
|
-
(Chrome and Firefox only).
|
1249
|
-
|
1248
|
+
(Chrome and Firefox only).
|
1249
|
+
|
1250
|
+
* In a production build, this method is defined as an empty function (NOP).
|
1251
|
+
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
1250
1252
|
|
1251
1253
|
@method deprecate
|
1252
1254
|
@param {String} message A description of the deprecation.
|
@@ -1353,10 +1355,10 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
1353
1355
|
*/
|
1354
1356
|
|
1355
1357
|
/**
|
1356
|
-
Define an assertion that will throw an exception if the condition is not
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1358
|
+
Define an assertion that will throw an exception if the condition is not met.
|
1359
|
+
|
1360
|
+
* In a production build, this method is defined as an empty function (NOP).
|
1361
|
+
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
1360
1362
|
|
1361
1363
|
```javascript
|
1362
1364
|
// Test for truthiness
|
@@ -1390,8 +1392,10 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
1390
1392
|
});
|
1391
1393
|
|
1392
1394
|
/**
|
1393
|
-
Display a debug notice.
|
1394
|
-
|
1395
|
+
Display a debug notice.
|
1396
|
+
|
1397
|
+
* In a production build, this method is defined as an empty function (NOP).
|
1398
|
+
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
1395
1399
|
|
1396
1400
|
```javascript
|
1397
1401
|
Ember.debug('I\'m a debug notice!');
|
@@ -1408,6 +1412,9 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
1408
1412
|
/**
|
1409
1413
|
Display an info notice.
|
1410
1414
|
|
1415
|
+
* In a production build, this method is defined as an empty function (NOP).
|
1416
|
+
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
1417
|
+
|
1411
1418
|
@method info
|
1412
1419
|
@private
|
1413
1420
|
*/
|
@@ -1421,8 +1428,7 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
1421
1428
|
Display a deprecation warning with the provided message and a stack trace
|
1422
1429
|
(Chrome and Firefox only) when the assigned method is called.
|
1423
1430
|
|
1424
|
-
|
1425
|
-
no warnings will be shown in production.
|
1431
|
+
* In a production build, this method is defined as an empty function (NOP).
|
1426
1432
|
|
1427
1433
|
```javascript
|
1428
1434
|
Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);
|
@@ -1473,8 +1479,10 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
1473
1479
|
});
|
1474
1480
|
|
1475
1481
|
/**
|
1476
|
-
Run a function meant for debugging.
|
1477
|
-
|
1482
|
+
Run a function meant for debugging.
|
1483
|
+
|
1484
|
+
* In a production build, this method is defined as an empty function (NOP).
|
1485
|
+
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
1478
1486
|
|
1479
1487
|
```javascript
|
1480
1488
|
Ember.runInDebug(() => {
|
@@ -1514,14 +1522,18 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
1514
1522
|
@return {void}
|
1515
1523
|
*/
|
1516
1524
|
|
1517
|
-
function _warnIfUsingStrippedFeatureFlags(FEATURES, featuresWereStripped) {
|
1525
|
+
function _warnIfUsingStrippedFeatureFlags(FEATURES, knownFeatures, featuresWereStripped) {
|
1518
1526
|
if (featuresWereStripped) {
|
1519
1527
|
_emberMetalDebug.warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !_emberMetalCore.default.ENV.ENABLE_OPTIONAL_FEATURES, { id: 'ember-debug.feature-flag-with-features-stripped' });
|
1520
1528
|
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1529
|
+
var keys = Object.keys(FEATURES || {});
|
1530
|
+
for (var i = 0; i < keys.length; i++) {
|
1531
|
+
var key = keys[i];
|
1532
|
+
if (key === 'isEnabled' || !(key in knownFeatures)) {
|
1533
|
+
continue;
|
1524
1534
|
}
|
1535
|
+
|
1536
|
+
_emberMetalDebug.warn('FEATURE["' + key + '"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key], { id: 'ember-debug.feature-flag-with-features-stripped' });
|
1525
1537
|
}
|
1526
1538
|
}
|
1527
1539
|
}
|
@@ -1532,7 +1544,7 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
1532
1544
|
var featuresWereStripped = true;
|
1533
1545
|
|
1534
1546
|
delete _emberMetalFeatures.FEATURES['features-stripped-test'];
|
1535
|
-
_warnIfUsingStrippedFeatureFlags(_emberMetalCore.default.ENV.FEATURES, featuresWereStripped);
|
1547
|
+
_warnIfUsingStrippedFeatureFlags(_emberMetalCore.default.ENV.FEATURES, _emberMetalFeatures.KNOWN_FEATURES, featuresWereStripped);
|
1536
1548
|
|
1537
1549
|
// Inform the developer about the Ember Inspector if not installed.
|
1538
1550
|
var isFirefox = _emberMetalEnvironment.default.isFirefox;
|
@@ -1670,8 +1682,10 @@ enifed('ember-debug/warn', ['exports', 'ember-metal/logger', 'ember-metal/debug'
|
|
1670
1682
|
*/
|
1671
1683
|
|
1672
1684
|
/**
|
1673
|
-
Display a warning with the provided message.
|
1674
|
-
|
1685
|
+
Display a warning with the provided message.
|
1686
|
+
|
1687
|
+
* In a production build, this method is defined as an empty function (NOP).
|
1688
|
+
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
1675
1689
|
|
1676
1690
|
@method warn
|
1677
1691
|
@param {String} message A warning to display.
|
@@ -2767,10 +2781,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
2767
2781
|
|
2768
2782
|
var DEEP_EACH_REGEX = /\.@each\.[^.]+\./;
|
2769
2783
|
|
2770
|
-
// ..........................................................
|
2771
|
-
// COMPUTED PROPERTY
|
2772
|
-
//
|
2773
|
-
|
2774
2784
|
/**
|
2775
2785
|
A computed property transforms an object literal with object's accessor function(s) into a property.
|
2776
2786
|
|
@@ -2873,7 +2883,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
2873
2883
|
|
2874
2884
|
@class ComputedProperty
|
2875
2885
|
@namespace Ember
|
2876
|
-
@constructor
|
2877
2886
|
@public
|
2878
2887
|
*/
|
2879
2888
|
function ComputedProperty(config, opts) {
|
@@ -3032,7 +3041,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3032
3041
|
@chainable
|
3033
3042
|
@public
|
3034
3043
|
*/
|
3035
|
-
|
3036
3044
|
ComputedPropertyPrototype.meta = function (meta) {
|
3037
3045
|
if (arguments.length === 0) {
|
3038
3046
|
return this._meta || {};
|
@@ -3063,33 +3071,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3063
3071
|
}
|
3064
3072
|
};
|
3065
3073
|
|
3066
|
-
/**
|
3067
|
-
Access the value of the function backing the computed property.
|
3068
|
-
If this property has already been cached, return the cached result.
|
3069
|
-
Otherwise, call the function passing the property name as an argument.
|
3070
|
-
|
3071
|
-
```javascript
|
3072
|
-
let Person = Ember.Object.extend({
|
3073
|
-
fullName: Ember.computed('firstName', 'lastName', function(keyName) {
|
3074
|
-
// the keyName parameter is 'fullName' in this case.
|
3075
|
-
return this.get('firstName') + ' ' + this.get('lastName');
|
3076
|
-
})
|
3077
|
-
});
|
3078
|
-
|
3079
|
-
|
3080
|
-
let tom = Person.create({
|
3081
|
-
firstName: 'Tom',
|
3082
|
-
lastName: 'Dale'
|
3083
|
-
});
|
3084
|
-
|
3085
|
-
tom.get('fullName') // 'Tom Dale'
|
3086
|
-
```
|
3087
|
-
|
3088
|
-
@method get
|
3089
|
-
@param {String} keyName The key being accessed.
|
3090
|
-
@return {Object} The return value of the function backing the CP.
|
3091
|
-
@public
|
3092
|
-
*/
|
3093
3074
|
ComputedPropertyPrototype.get = function (obj, keyName) {
|
3094
3075
|
if (this._volatile) {
|
3095
3076
|
return this._getter.call(obj, keyName);
|
@@ -3121,54 +3102,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
|
|
3121
3102
|
return ret;
|
3122
3103
|
};
|
3123
3104
|
|
3124
|
-
/**
|
3125
|
-
Set the value of a computed property. If the function that backs your
|
3126
|
-
computed property does not accept arguments then the default action for
|
3127
|
-
setting would be to define the property on the current object, and set
|
3128
|
-
the value of the property to the value being set.
|
3129
|
-
|
3130
|
-
Generally speaking if you intend for your computed property to be set
|
3131
|
-
you should pass `set(key, value)` function in hash as argument to `Ember.computed()` along with `get(key)` function.
|
3132
|
-
|
3133
|
-
```javascript
|
3134
|
-
let Person = Ember.Object.extend({
|
3135
|
-
// these will be supplied by `create`
|
3136
|
-
firstName: null,
|
3137
|
-
lastName: null,
|
3138
|
-
|
3139
|
-
fullName: Ember.computed('firstName', 'lastName', {
|
3140
|
-
// getter
|
3141
|
-
get() {
|
3142
|
-
let firstName = this.get('firstName');
|
3143
|
-
let lastName = this.get('lastName');
|
3144
|
-
|
3145
|
-
return firstName + ' ' + lastName;
|
3146
|
-
},
|
3147
|
-
// setter
|
3148
|
-
set(key, value) {
|
3149
|
-
let [firstName, lastName] = value.split(' ');
|
3150
|
-
|
3151
|
-
this.set('firstName', firstName);
|
3152
|
-
this.set('lastName', lastName);
|
3153
|
-
|
3154
|
-
return value;
|
3155
|
-
}
|
3156
|
-
})
|
3157
|
-
});
|
3158
|
-
|
3159
|
-
let person = Person.create();
|
3160
|
-
|
3161
|
-
person.set('fullName', 'Peter Wagenet');
|
3162
|
-
person.get('firstName'); // 'Peter'
|
3163
|
-
person.get('lastName'); // 'Wagenet'
|
3164
|
-
```
|
3165
|
-
|
3166
|
-
@method set
|
3167
|
-
@param {String} keyName The key being accessed.
|
3168
|
-
@param {Object} newValue The new value being assigned.
|
3169
|
-
@return {Object} The return value of the function backing the CP.
|
3170
|
-
@public
|
3171
|
-
*/
|
3172
3105
|
ComputedPropertyPrototype.set = function computedPropertySetEntry(obj, keyName, value) {
|
3173
3106
|
if (this._readOnly) {
|
3174
3107
|
this._throwReadOnlyError(obj, keyName);
|
@@ -4090,8 +4023,6 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
4090
4023
|
Ember may overwrite this namespace and therefore, you should avoid adding any
|
4091
4024
|
new properties.
|
4092
4025
|
|
4093
|
-
You can also use the shorthand `Em` instead of `Ember`.
|
4094
|
-
|
4095
4026
|
At the heart of Ember is Ember-Runtime, a set of core functions that provide
|
4096
4027
|
cross-platform compatibility and object property observing. Ember-Runtime is
|
4097
4028
|
small and performance-focused so you can use it alongside other
|
@@ -4100,7 +4031,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
4100
4031
|
|
4101
4032
|
@class Ember
|
4102
4033
|
@static
|
4103
|
-
@version 2.4.
|
4034
|
+
@version 2.4.5
|
4104
4035
|
@public
|
4105
4036
|
*/
|
4106
4037
|
|
@@ -4142,11 +4073,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
4142
4073
|
|
4143
4074
|
@property VERSION
|
4144
4075
|
@type String
|
4145
|
-
@default '2.4.
|
4076
|
+
@default '2.4.5'
|
4146
4077
|
@static
|
4147
4078
|
@public
|
4148
4079
|
*/
|
4149
|
-
Ember.VERSION = '2.4.
|
4080
|
+
Ember.VERSION = '2.4.5';
|
4150
4081
|
|
4151
4082
|
/**
|
4152
4083
|
The hash of environment variables used to control various configuration
|
@@ -4974,9 +4905,11 @@ enifed('ember-metal/features', ['exports', 'ember-metal/core', 'ember-metal/assi
|
|
4974
4905
|
@since 1.1.0
|
4975
4906
|
@public
|
4976
4907
|
*/
|
4977
|
-
var
|
4908
|
+
var KNOWN_FEATURES = {};exports.KNOWN_FEATURES = KNOWN_FEATURES;
|
4978
4909
|
// jshint ignore:line
|
4910
|
+
var FEATURES = _emberMetalAssign.default(KNOWN_FEATURES, _emberMetalCore.default.ENV.FEATURES);
|
4979
4911
|
|
4912
|
+
exports.FEATURES = FEATURES;
|
4980
4913
|
/**
|
4981
4914
|
Determine whether the specified `feature` is enabled. Used by Ember's
|
4982
4915
|
build tools to exclude experimental features from beta/stable builds.
|
@@ -8313,9 +8246,9 @@ enifed('ember-metal/properties', ['exports', 'ember-metal/debug', 'ember-metal/f
|
|
8313
8246
|
Ember.defineProperty(contact, 'lastName', undefined, 'Jolley');
|
8314
8247
|
|
8315
8248
|
// define a computed property
|
8316
|
-
Ember.defineProperty(contact, 'fullName', Ember.computed(function() {
|
8249
|
+
Ember.defineProperty(contact, 'fullName', Ember.computed('firstName', 'lastName', function() {
|
8317
8250
|
return this.firstName+' '+this.lastName;
|
8318
|
-
})
|
8251
|
+
}));
|
8319
8252
|
```
|
8320
8253
|
|
8321
8254
|
@private
|
@@ -11772,7 +11705,7 @@ enifed('ember-template-compiler/compat', ['exports', 'ember-metal/core', 'ember-
|
|
11772
11705
|
EmberHandlebars.compile = _emberTemplateCompilerSystemCompile.default;
|
11773
11706
|
EmberHandlebars.template = _emberTemplateCompilerSystemTemplate.default;
|
11774
11707
|
});
|
11775
|
-
enifed('ember-template-compiler/index', ['exports', 'ember-metal', 'ember-template-compiler/system/precompile', 'ember-template-compiler/system/compile', 'ember-template-compiler/system/template', 'ember-template-compiler/plugins', 'ember-template-compiler/plugins/transform-old-binding-syntax', 'ember-template-compiler/plugins/transform-old-class-binding-syntax', 'ember-template-compiler/plugins/transform-item-class', 'ember-template-compiler/plugins/transform-closure-component-attrs-into-mut', 'ember-template-compiler/plugins/transform-component-attrs-into-mut', 'ember-template-compiler/plugins/transform-component-curly-to-readonly', 'ember-template-compiler/plugins/transform-angle-bracket-components', 'ember-template-compiler/plugins/transform-input-on-to-onEvent', 'ember-template-compiler/plugins/transform-top-level-components', 'ember-template-compiler/plugins/transform-each-into-collection', 'ember-template-compiler/plugins/transform-unescaped-inline-link-to', 'ember-template-compiler/plugins/assert-no-view-and-controller-paths', 'ember-template-compiler/plugins/assert-no-view-helper', 'ember-template-compiler/compat'], function (exports, _emberMetal, _emberTemplateCompilerSystemPrecompile, _emberTemplateCompilerSystemCompile, _emberTemplateCompilerSystemTemplate, _emberTemplateCompilerPlugins, _emberTemplateCompilerPluginsTransformOldBindingSyntax, _emberTemplateCompilerPluginsTransformOldClassBindingSyntax, _emberTemplateCompilerPluginsTransformItemClass, _emberTemplateCompilerPluginsTransformClosureComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly, _emberTemplateCompilerPluginsTransformAngleBracketComponents, _emberTemplateCompilerPluginsTransformInputOnToOnEvent, _emberTemplateCompilerPluginsTransformTopLevelComponents, _emberTemplateCompilerPluginsTransformEachIntoCollection, _emberTemplateCompilerPluginsTransformUnescapedInlineLinkTo, _emberTemplateCompilerPluginsAssertNoViewAndControllerPaths, _emberTemplateCompilerPluginsAssertNoViewHelper, _emberTemplateCompilerCompat) {
|
11708
|
+
enifed('ember-template-compiler/index', ['exports', 'ember-metal', 'ember-template-compiler/system/precompile', 'ember-template-compiler/system/compile', 'ember-template-compiler/system/template', 'ember-template-compiler/plugins', 'ember-template-compiler/plugins/transform-old-binding-syntax', 'ember-template-compiler/plugins/transform-old-class-binding-syntax', 'ember-template-compiler/plugins/transform-item-class', 'ember-template-compiler/plugins/transform-closure-component-attrs-into-mut', 'ember-template-compiler/plugins/transform-component-attrs-into-mut', 'ember-template-compiler/plugins/transform-component-curly-to-readonly', 'ember-template-compiler/plugins/transform-angle-bracket-components', 'ember-template-compiler/plugins/transform-input-on-to-onEvent', 'ember-template-compiler/plugins/transform-top-level-components', 'ember-template-compiler/plugins/transform-each-into-collection', 'ember-template-compiler/plugins/transform-unescaped-inline-link-to', 'ember-template-compiler/plugins/deprecate-render-block', 'ember-template-compiler/plugins/assert-no-view-and-controller-paths', 'ember-template-compiler/plugins/assert-no-view-helper', 'ember-template-compiler/compat'], function (exports, _emberMetal, _emberTemplateCompilerSystemPrecompile, _emberTemplateCompilerSystemCompile, _emberTemplateCompilerSystemTemplate, _emberTemplateCompilerPlugins, _emberTemplateCompilerPluginsTransformOldBindingSyntax, _emberTemplateCompilerPluginsTransformOldClassBindingSyntax, _emberTemplateCompilerPluginsTransformItemClass, _emberTemplateCompilerPluginsTransformClosureComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly, _emberTemplateCompilerPluginsTransformAngleBracketComponents, _emberTemplateCompilerPluginsTransformInputOnToOnEvent, _emberTemplateCompilerPluginsTransformTopLevelComponents, _emberTemplateCompilerPluginsTransformEachIntoCollection, _emberTemplateCompilerPluginsTransformUnescapedInlineLinkTo, _emberTemplateCompilerPluginsDeprecateRenderBlock, _emberTemplateCompilerPluginsAssertNoViewAndControllerPaths, _emberTemplateCompilerPluginsAssertNoViewHelper, _emberTemplateCompilerCompat) {
|
11776
11709
|
'use strict';
|
11777
11710
|
|
11778
11711
|
_emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformOldBindingSyntax.default);
|
@@ -11785,6 +11718,7 @@ enifed('ember-template-compiler/index', ['exports', 'ember-metal', 'ember-templa
|
|
11785
11718
|
_emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformInputOnToOnEvent.default);
|
11786
11719
|
_emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformTopLevelComponents.default);
|
11787
11720
|
_emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformUnescapedInlineLinkTo.default);
|
11721
|
+
_emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsDeprecateRenderBlock.default);
|
11788
11722
|
|
11789
11723
|
if (_emberMetal.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT) {
|
11790
11724
|
_emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformEachIntoCollection.default);
|
@@ -11927,6 +11861,45 @@ enifed('ember-template-compiler/plugins/assert-no-view-helper', ['exports', 'emb
|
|
11927
11861
|
|
11928
11862
|
exports.default = AssertNoViewHelper;
|
11929
11863
|
});
|
11864
|
+
enifed('ember-template-compiler/plugins/deprecate-render-block', ['exports', 'ember-metal/debug', 'ember-template-compiler/system/calculate-location-display'], function (exports, _emberMetalDebug, _emberTemplateCompilerSystemCalculateLocationDisplay) {
|
11865
|
+
'use strict';
|
11866
|
+
|
11867
|
+
exports.default = DeprecateRenderBlock;
|
11868
|
+
|
11869
|
+
function DeprecateRenderBlock(options) {
|
11870
|
+
this.syntax = null;
|
11871
|
+
this.options = options;
|
11872
|
+
}
|
11873
|
+
|
11874
|
+
DeprecateRenderBlock.prototype.transform = function DeprecateRenderBlock_transform(ast) {
|
11875
|
+
var moduleName = this.options.moduleName;
|
11876
|
+
var walker = new this.syntax.Walker();
|
11877
|
+
|
11878
|
+
walker.visit(ast, function (node) {
|
11879
|
+
if (!validate(node)) {
|
11880
|
+
return;
|
11881
|
+
}
|
11882
|
+
|
11883
|
+
_emberMetalDebug.deprecate(deprecationMessage(moduleName, node), false, {
|
11884
|
+
id: 'ember-template-compiler.deprecate-render-block',
|
11885
|
+
until: '2.4.0',
|
11886
|
+
url: 'http://emberjs.com/deprecations/v2.x#toc_render-helper-with-block'
|
11887
|
+
});
|
11888
|
+
});
|
11889
|
+
|
11890
|
+
return ast;
|
11891
|
+
};
|
11892
|
+
|
11893
|
+
function validate(node) {
|
11894
|
+
return node.type === 'BlockStatement' && node.path.original === 'render';
|
11895
|
+
}
|
11896
|
+
|
11897
|
+
function deprecationMessage(moduleName, node) {
|
11898
|
+
var sourceInformation = _emberTemplateCompilerSystemCalculateLocationDisplay.default(moduleName, node.loc);
|
11899
|
+
|
11900
|
+
return 'Usage of `render` in block form is deprecated ' + sourceInformation + '.';
|
11901
|
+
}
|
11902
|
+
});
|
11930
11903
|
enifed('ember-template-compiler/plugins/transform-angle-bracket-components', ['exports'], function (exports) {
|
11931
11904
|
'use strict';
|
11932
11905
|
|
@@ -12901,7 +12874,7 @@ enifed('ember-template-compiler/system/compile_options', ['exports', 'ember-meta
|
|
12901
12874
|
options.buildMeta = function buildMeta(program) {
|
12902
12875
|
return {
|
12903
12876
|
fragmentReason: fragmentReason(program),
|
12904
|
-
revision: 'Ember@2.4.
|
12877
|
+
revision: 'Ember@2.4.5',
|
12905
12878
|
loc: program.loc,
|
12906
12879
|
moduleName: options.moduleName
|
12907
12880
|
};
|