ember-source 2.5.0.beta.4 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 872009e3b36d88c4a2b81b6fc02b8750e3f1308b
4
- data.tar.gz: f1ec46630dc2fb95dd78caa33aaf0459e7ec1256
3
+ metadata.gz: c841ce89343e7cdcc87e0bd663b8073d54fdf6e6
4
+ data.tar.gz: 1a8584650380b27f9940b30732ece31dc0e220d5
5
5
  SHA512:
6
- metadata.gz: 49a43d19696b1435f04d39d8c829b2a5497a661924acaa5446262118c36e0ec1e356df1a4a2f7af4834b042d5e1495c3507702bb982fa4a6b500655153fb90a5
7
- data.tar.gz: 9f12e207d06a6cb0a6d2815283f5ed161f71de0cc829ccfa25fb6bc9e2a4bb588fa630a319e414e6c7eaa63cad89e06ab655a0d64b10375c5009e9a6bc7451a5
6
+ metadata.gz: ec05fe19620c4fb6d0f32d873d4fcedb7497f3dec6037658dd1383972eb235e43cec5da7f8ede72fefd787eece57f2734516f3b062d8c15be7677b170b84d383
7
+ data.tar.gz: a0ac29db045bb8da6275bd4d461db39d5baf0467afcb6178d5b8aa8379f89b1489f3a8e90e4061cf47c80c126e6b575d73ba90834218bb535af39049f03b02b4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.0-beta.4
1
+ 2.5.0
@@ -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.5.0-beta.4
9
+ * @version 2.5.0
10
10
  */
11
11
 
12
12
  var enifed, requireModule, require, requirejs, Ember;
@@ -3493,10 +3493,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
3493
3493
 
3494
3494
  var DEEP_EACH_REGEX = /\.@each\.[^.]+\./;
3495
3495
 
3496
- // ..........................................................
3497
- // COMPUTED PROPERTY
3498
- //
3499
-
3500
3496
  /**
3501
3497
  A computed property transforms an object literal with object's accessor function(s) into a property.
3502
3498
 
@@ -3599,7 +3595,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
3599
3595
 
3600
3596
  @class ComputedProperty
3601
3597
  @namespace Ember
3602
- @constructor
3603
3598
  @public
3604
3599
  */
3605
3600
  function ComputedProperty(config, opts) {
@@ -3758,7 +3753,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
3758
3753
  @chainable
3759
3754
  @public
3760
3755
  */
3761
-
3762
3756
  ComputedPropertyPrototype.meta = function (meta) {
3763
3757
  if (arguments.length === 0) {
3764
3758
  return this._meta || {};
@@ -3789,33 +3783,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
3789
3783
  }
3790
3784
  };
3791
3785
 
3792
- /**
3793
- Access the value of the function backing the computed property.
3794
- If this property has already been cached, return the cached result.
3795
- Otherwise, call the function passing the property name as an argument.
3796
-
3797
- ```javascript
3798
- let Person = Ember.Object.extend({
3799
- fullName: Ember.computed('firstName', 'lastName', function(keyName) {
3800
- // the keyName parameter is 'fullName' in this case.
3801
- return this.get('firstName') + ' ' + this.get('lastName');
3802
- })
3803
- });
3804
-
3805
-
3806
- let tom = Person.create({
3807
- firstName: 'Tom',
3808
- lastName: 'Dale'
3809
- });
3810
-
3811
- tom.get('fullName') // 'Tom Dale'
3812
- ```
3813
-
3814
- @method get
3815
- @param {String} keyName The key being accessed.
3816
- @return {Object} The return value of the function backing the CP.
3817
- @public
3818
- */
3819
3786
  ComputedPropertyPrototype.get = function (obj, keyName) {
3820
3787
  if (this._volatile) {
3821
3788
  return this._getter.call(obj, keyName);
@@ -3847,54 +3814,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
3847
3814
  return ret;
3848
3815
  };
3849
3816
 
3850
- /**
3851
- Set the value of a computed property. If the function that backs your
3852
- computed property does not accept arguments then the default action for
3853
- setting would be to define the property on the current object, and set
3854
- the value of the property to the value being set.
3855
-
3856
- Generally speaking if you intend for your computed property to be set
3857
- you should pass `set(key, value)` function in hash as argument to `Ember.computed()` along with `get(key)` function.
3858
-
3859
- ```javascript
3860
- let Person = Ember.Object.extend({
3861
- // these will be supplied by `create`
3862
- firstName: null,
3863
- lastName: null,
3864
-
3865
- fullName: Ember.computed('firstName', 'lastName', {
3866
- // getter
3867
- get() {
3868
- let firstName = this.get('firstName');
3869
- let lastName = this.get('lastName');
3870
-
3871
- return firstName + ' ' + lastName;
3872
- },
3873
- // setter
3874
- set(key, value) {
3875
- let [firstName, lastName] = value.split(' ');
3876
-
3877
- this.set('firstName', firstName);
3878
- this.set('lastName', lastName);
3879
-
3880
- return value;
3881
- }
3882
- })
3883
- });
3884
-
3885
- let person = Person.create();
3886
-
3887
- person.set('fullName', 'Peter Wagenet');
3888
- person.get('firstName'); // 'Peter'
3889
- person.get('lastName'); // 'Wagenet'
3890
- ```
3891
-
3892
- @method set
3893
- @param {String} keyName The key being accessed.
3894
- @param {Object} newValue The new value being assigned.
3895
- @return {Object} The return value of the function backing the CP.
3896
- @public
3897
- */
3898
3817
  ComputedPropertyPrototype.set = function computedPropertySetEntry(obj, keyName, value) {
3899
3818
  if (this._readOnly) {
3900
3819
  this._throwReadOnlyError(obj, keyName);
@@ -4816,8 +4735,6 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
4816
4735
  Ember may overwrite this namespace and therefore, you should avoid adding any
4817
4736
  new properties.
4818
4737
 
4819
- You can also use the shorthand `Em` instead of `Ember`.
4820
-
4821
4738
  At the heart of Ember is Ember-Runtime, a set of core functions that provide
4822
4739
  cross-platform compatibility and object property observing. Ember-Runtime is
4823
4740
  small and performance-focused so you can use it alongside other
@@ -4826,7 +4743,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
4826
4743
 
4827
4744
  @class Ember
4828
4745
  @static
4829
- @version 2.5.0-beta.4
4746
+ @version 2.5.0
4830
4747
  @public
4831
4748
  */
4832
4749
 
@@ -4868,11 +4785,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
4868
4785
 
4869
4786
  @property VERSION
4870
4787
  @type String
4871
- @default '2.5.0-beta.4'
4788
+ @default '2.5.0'
4872
4789
  @static
4873
4790
  @public
4874
4791
  */
4875
- Ember.VERSION = '2.5.0-beta.4';
4792
+ Ember.VERSION = '2.5.0';
4876
4793
 
4877
4794
  /**
4878
4795
  The hash of environment variables used to control various configuration
@@ -5695,9 +5612,11 @@ enifed('ember-metal/features', ['exports', 'ember-metal/core', 'ember-metal/assi
5695
5612
  @since 1.1.0
5696
5613
  @public
5697
5614
  */
5698
- var FEATURES = _emberMetalAssign.default({}, _emberMetalCore.default.ENV.FEATURES);exports.FEATURES = FEATURES;
5615
+ var KNOWN_FEATURES = {};exports.KNOWN_FEATURES = KNOWN_FEATURES;
5699
5616
  // jshint ignore:line
5617
+ var FEATURES = _emberMetalAssign.default(KNOWN_FEATURES, _emberMetalCore.default.ENV.FEATURES);
5700
5618
 
5619
+ exports.FEATURES = FEATURES;
5701
5620
  /**
5702
5621
  Determine whether the specified `feature` is enabled. Used by Ember's
5703
5622
  build tools to exclude experimental features from beta/stable builds.
@@ -7191,7 +7110,9 @@ enifed('ember-metal/merge', ['exports', 'ember-metal/debug', 'ember-metal/featur
7191
7110
 
7192
7111
  function merge(original, updates) {
7193
7112
  if (_emberMetalFeatures.default('ember-metal-ember-assign')) {
7194
- _emberMetalDebug.deprecate('Usage of `Ember.merge` is deprecated, use `Ember.assign` instead.', false, { id: 'ember-metal.merge', until: '3.0.0' });
7113
+ _emberMetalDebug.deprecate('Usage of `Ember.merge` is deprecated, use `Ember.assign` instead.', false, {
7114
+ id: 'ember-metal.merge', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-merge'
7115
+ });
7195
7116
  }
7196
7117
 
7197
7118
  if (!updates || typeof updates !== 'object') {
@@ -9048,9 +8969,9 @@ enifed('ember-metal/properties', ['exports', 'ember-metal/debug', 'ember-metal/f
9048
8969
  Ember.defineProperty(contact, 'lastName', undefined, 'Jolley');
9049
8970
 
9050
8971
  // define a computed property
9051
- Ember.defineProperty(contact, 'fullName', Ember.computed(function() {
8972
+ Ember.defineProperty(contact, 'fullName', Ember.computed('firstName', 'lastName', function() {
9052
8973
  return this.firstName+' '+this.lastName;
9053
- }).property('firstName', 'lastName'));
8974
+ }));
9054
8975
  ```
9055
8976
 
9056
8977
  @private
@@ -10683,11 +10604,13 @@ enifed('ember-metal/streams/proxy-stream', ['exports', 'ember-runtime/system/obj
10683
10604
 
10684
10605
  exports.default = ProxyStream;
10685
10606
  });
10686
- enifed('ember-metal/streams/stream', ['exports', 'ember-metal/assign', 'ember-metal/debug', 'ember-metal/path_cache', 'ember-metal/observer', 'ember-metal/streams/utils', 'ember-metal/empty_object', 'ember-metal/streams/subscriber', 'ember-metal/streams/dependency', 'ember-metal/utils', 'require'], function (exports, _emberMetalAssign, _emberMetalDebug, _emberMetalPath_cache, _emberMetalObserver, _emberMetalStreamsUtils, _emberMetalEmpty_object, _emberMetalStreamsSubscriber, _emberMetalStreamsDependency, _emberMetalUtils, _require) {
10607
+ enifed('ember-metal/streams/stream', ['exports', 'ember-metal/assign', 'ember-metal/debug', 'ember-metal/path_cache', 'ember-metal/observer', 'ember-metal/streams/utils', 'ember-metal/empty_object', 'ember-metal/streams/subscriber', 'ember-metal/streams/dependency', 'ember-metal/utils', 'require', 'ember-metal/symbol'], function (exports, _emberMetalAssign, _emberMetalDebug, _emberMetalPath_cache, _emberMetalObserver, _emberMetalStreamsUtils, _emberMetalEmpty_object, _emberMetalStreamsSubscriber, _emberMetalStreamsDependency, _emberMetalUtils, _require, _emberMetalSymbol) {
10687
10608
  'use strict';
10688
10609
 
10689
10610
  exports.wrap = wrap;
10611
+ var IS_STREAM = _emberMetalSymbol.default('IS_STREAM');
10690
10612
 
10613
+ exports.IS_STREAM = IS_STREAM;
10691
10614
  /**
10692
10615
  @module ember-metal
10693
10616
  */
@@ -10706,9 +10629,8 @@ enifed('ember-metal/streams/stream', ['exports', 'ember-metal/assign', 'ember-me
10706
10629
  var ProxyMixin;
10707
10630
 
10708
10631
  BasicStream.prototype = {
10709
- isStream: true,
10710
-
10711
10632
  _init: function (label) {
10633
+ this[IS_STREAM] = true;
10712
10634
  this.label = makeLabel(label);
10713
10635
  this.isActive = false;
10714
10636
  this.isDirty = true;
@@ -11108,7 +11030,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
11108
11030
  */
11109
11031
 
11110
11032
  function isStream(object) {
11111
- return object && object.isStream;
11033
+ return object && object[_emberMetalStreamsStream.IS_STREAM];
11112
11034
  }
11113
11035
 
11114
11036
  /*
@@ -11125,7 +11047,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
11125
11047
  */
11126
11048
 
11127
11049
  function subscribe(object, callback, context) {
11128
- if (object && object.isStream) {
11050
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
11129
11051
  return object.subscribe(callback, context);
11130
11052
  }
11131
11053
  }
@@ -11143,7 +11065,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
11143
11065
  */
11144
11066
 
11145
11067
  function unsubscribe(object, callback, context) {
11146
- if (object && object.isStream) {
11068
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
11147
11069
  object.unsubscribe(callback, context);
11148
11070
  }
11149
11071
  }
@@ -11160,7 +11082,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
11160
11082
  */
11161
11083
 
11162
11084
  function read(object) {
11163
- if (object && object.isStream) {
11085
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
11164
11086
  return object.value();
11165
11087
  } else {
11166
11088
  return object;
@@ -11455,7 +11377,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
11455
11377
  }
11456
11378
 
11457
11379
  function setValue(object, value) {
11458
- if (object && object.isStream) {
11380
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
11459
11381
  object.setValue(value);
11460
11382
  }
11461
11383
  }
@@ -14873,7 +14795,7 @@ enifed('ember-runtime/mixins/array', ['exports', 'ember-metal/core', 'ember-meta
14873
14795
  on the array. Just get an equivalent property on this object and it will
14874
14796
  return an enumerable that maps automatically to the named key on the
14875
14797
  member objects.
14876
- @each should only be used in a non-terminal context. Example:
14798
+ `@each` should only be used in a non-terminal context. Example:
14877
14799
  ```javascript
14878
14800
  myMethod: computed('posts.@each.author', function(){
14879
14801
  ...
@@ -15342,6 +15264,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/property_get'
15342
15264
  ```
15343
15265
  @property firstObject
15344
15266
  @return {Object} the object or undefined
15267
+ @readOnly
15345
15268
  @public
15346
15269
  */
15347
15270
  firstObject: _emberMetalComputed.computed('[]', function () {
@@ -15370,6 +15293,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/property_get'
15370
15293
  ```
15371
15294
  @property lastObject
15372
15295
  @return {Object} the last object or undefined
15296
+ @readOnly
15373
15297
  @public
15374
15298
  */
15375
15299
  lastObject: _emberMetalComputed.computed('[]', function () {
@@ -19736,14 +19660,14 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal/core', 'emb
19736
19660
  if (_emberMetalCore.default.EXTEND_PROTOTYPES === true || _emberMetalCore.default.EXTEND_PROTOTYPES.Array) {
19737
19661
  NativeArray.apply(Array.prototype);
19738
19662
  exports. // ES6TODO: Setting A onto the object returned by ember-metal/core to avoid circles
19739
- A = A = function () {
19740
- var arr = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];
19741
- return arr;
19663
+ A = A = function (arr) {
19664
+ return arr || [];
19742
19665
  };
19743
19666
  } else {
19744
- exports.A = A = function () {
19745
- var arr = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];
19746
-
19667
+ exports.A = A = function (arr) {
19668
+ if (!arr) {
19669
+ arr = [];
19670
+ }
19747
19671
  return _emberRuntimeMixinsArray.default.detect(arr) ? arr : NativeArray.apply(arr);
19748
19672
  };
19749
19673
  }
@@ -23052,4 +22976,3 @@ requireModule("ember-runtime");
23052
22976
  }());
23053
22977
 
23054
22978
  ;module.exports = Ember;
23055
- //# sourceMappingURL=ember-runtime.map
@@ -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.5.0-beta.4
9
+ * @version 2.5.0
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). Ember build tools will remove any calls to
1249
- `Ember.deprecate()` when doing a production build.
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
- met. Ember build tools will remove any calls to `Ember.assert()` when
1358
- doing an Ember.js framework production build and will make the assertion a
1359
- no-op for an application production build. Example:
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. Ember build tools will remove any calls to
1394
- `Ember.debug()` when doing a production build.
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
- Ember build tools will not remove calls to `Ember.deprecateFunc()`, though
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. Ember build tools will remove any calls to
1477
- `Ember.runInDebug()` when doing a production build.
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
- for (var key in FEATURES) {
1522
- if (FEATURES.hasOwnProperty(key) && key !== 'isEnabled') {
1523
- _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' });
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. Ember build tools will
1674
- remove any calls to `Ember.warn()` when doing a production build.
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.
@@ -2716,10 +2730,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
2716
2730
 
2717
2731
  var DEEP_EACH_REGEX = /\.@each\.[^.]+\./;
2718
2732
 
2719
- // ..........................................................
2720
- // COMPUTED PROPERTY
2721
- //
2722
-
2723
2733
  /**
2724
2734
  A computed property transforms an object literal with object's accessor function(s) into a property.
2725
2735
 
@@ -2822,7 +2832,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
2822
2832
 
2823
2833
  @class ComputedProperty
2824
2834
  @namespace Ember
2825
- @constructor
2826
2835
  @public
2827
2836
  */
2828
2837
  function ComputedProperty(config, opts) {
@@ -2981,7 +2990,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
2981
2990
  @chainable
2982
2991
  @public
2983
2992
  */
2984
-
2985
2993
  ComputedPropertyPrototype.meta = function (meta) {
2986
2994
  if (arguments.length === 0) {
2987
2995
  return this._meta || {};
@@ -3012,33 +3020,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
3012
3020
  }
3013
3021
  };
3014
3022
 
3015
- /**
3016
- Access the value of the function backing the computed property.
3017
- If this property has already been cached, return the cached result.
3018
- Otherwise, call the function passing the property name as an argument.
3019
-
3020
- ```javascript
3021
- let Person = Ember.Object.extend({
3022
- fullName: Ember.computed('firstName', 'lastName', function(keyName) {
3023
- // the keyName parameter is 'fullName' in this case.
3024
- return this.get('firstName') + ' ' + this.get('lastName');
3025
- })
3026
- });
3027
-
3028
-
3029
- let tom = Person.create({
3030
- firstName: 'Tom',
3031
- lastName: 'Dale'
3032
- });
3033
-
3034
- tom.get('fullName') // 'Tom Dale'
3035
- ```
3036
-
3037
- @method get
3038
- @param {String} keyName The key being accessed.
3039
- @return {Object} The return value of the function backing the CP.
3040
- @public
3041
- */
3042
3023
  ComputedPropertyPrototype.get = function (obj, keyName) {
3043
3024
  if (this._volatile) {
3044
3025
  return this._getter.call(obj, keyName);
@@ -3070,54 +3051,6 @@ enifed('ember-metal/computed', ['exports', 'ember-metal/debug', 'ember-metal/pro
3070
3051
  return ret;
3071
3052
  };
3072
3053
 
3073
- /**
3074
- Set the value of a computed property. If the function that backs your
3075
- computed property does not accept arguments then the default action for
3076
- setting would be to define the property on the current object, and set
3077
- the value of the property to the value being set.
3078
-
3079
- Generally speaking if you intend for your computed property to be set
3080
- you should pass `set(key, value)` function in hash as argument to `Ember.computed()` along with `get(key)` function.
3081
-
3082
- ```javascript
3083
- let Person = Ember.Object.extend({
3084
- // these will be supplied by `create`
3085
- firstName: null,
3086
- lastName: null,
3087
-
3088
- fullName: Ember.computed('firstName', 'lastName', {
3089
- // getter
3090
- get() {
3091
- let firstName = this.get('firstName');
3092
- let lastName = this.get('lastName');
3093
-
3094
- return firstName + ' ' + lastName;
3095
- },
3096
- // setter
3097
- set(key, value) {
3098
- let [firstName, lastName] = value.split(' ');
3099
-
3100
- this.set('firstName', firstName);
3101
- this.set('lastName', lastName);
3102
-
3103
- return value;
3104
- }
3105
- })
3106
- });
3107
-
3108
- let person = Person.create();
3109
-
3110
- person.set('fullName', 'Peter Wagenet');
3111
- person.get('firstName'); // 'Peter'
3112
- person.get('lastName'); // 'Wagenet'
3113
- ```
3114
-
3115
- @method set
3116
- @param {String} keyName The key being accessed.
3117
- @param {Object} newValue The new value being assigned.
3118
- @return {Object} The return value of the function backing the CP.
3119
- @public
3120
- */
3121
3054
  ComputedPropertyPrototype.set = function computedPropertySetEntry(obj, keyName, value) {
3122
3055
  if (this._readOnly) {
3123
3056
  this._throwReadOnlyError(obj, keyName);
@@ -4039,8 +3972,6 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
4039
3972
  Ember may overwrite this namespace and therefore, you should avoid adding any
4040
3973
  new properties.
4041
3974
 
4042
- You can also use the shorthand `Em` instead of `Ember`.
4043
-
4044
3975
  At the heart of Ember is Ember-Runtime, a set of core functions that provide
4045
3976
  cross-platform compatibility and object property observing. Ember-Runtime is
4046
3977
  small and performance-focused so you can use it alongside other
@@ -4049,7 +3980,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
4049
3980
 
4050
3981
  @class Ember
4051
3982
  @static
4052
- @version 2.5.0-beta.4
3983
+ @version 2.5.0
4053
3984
  @public
4054
3985
  */
4055
3986
 
@@ -4091,11 +4022,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
4091
4022
 
4092
4023
  @property VERSION
4093
4024
  @type String
4094
- @default '2.5.0-beta.4'
4025
+ @default '2.5.0'
4095
4026
  @static
4096
4027
  @public
4097
4028
  */
4098
- Ember.VERSION = '2.5.0-beta.4';
4029
+ Ember.VERSION = '2.5.0';
4099
4030
 
4100
4031
  /**
4101
4032
  The hash of environment variables used to control various configuration
@@ -4918,9 +4849,11 @@ enifed('ember-metal/features', ['exports', 'ember-metal/core', 'ember-metal/assi
4918
4849
  @since 1.1.0
4919
4850
  @public
4920
4851
  */
4921
- var FEATURES = _emberMetalAssign.default({}, _emberMetalCore.default.ENV.FEATURES);exports.FEATURES = FEATURES;
4852
+ var KNOWN_FEATURES = {};exports.KNOWN_FEATURES = KNOWN_FEATURES;
4922
4853
  // jshint ignore:line
4854
+ var FEATURES = _emberMetalAssign.default(KNOWN_FEATURES, _emberMetalCore.default.ENV.FEATURES);
4923
4855
 
4856
+ exports.FEATURES = FEATURES;
4924
4857
  /**
4925
4858
  Determine whether the specified `feature` is enabled. Used by Ember's
4926
4859
  build tools to exclude experimental features from beta/stable builds.
@@ -6401,7 +6334,9 @@ enifed('ember-metal/merge', ['exports', 'ember-metal/debug', 'ember-metal/featur
6401
6334
  */
6402
6335
 
6403
6336
  function merge(original, updates) {
6404
- _emberMetalDebug.deprecate('Usage of `Ember.merge` is deprecated, use `Ember.assign` instead.', false, { id: 'ember-metal.merge', until: '3.0.0' });
6337
+ _emberMetalDebug.deprecate('Usage of `Ember.merge` is deprecated, use `Ember.assign` instead.', false, {
6338
+ id: 'ember-metal.merge', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-merge'
6339
+ });
6405
6340
 
6406
6341
  if (!updates || typeof updates !== 'object') {
6407
6342
  return original;
@@ -8257,9 +8192,9 @@ enifed('ember-metal/properties', ['exports', 'ember-metal/debug', 'ember-metal/f
8257
8192
  Ember.defineProperty(contact, 'lastName', undefined, 'Jolley');
8258
8193
 
8259
8194
  // define a computed property
8260
- Ember.defineProperty(contact, 'fullName', Ember.computed(function() {
8195
+ Ember.defineProperty(contact, 'fullName', Ember.computed('firstName', 'lastName', function() {
8261
8196
  return this.firstName+' '+this.lastName;
8262
- }).property('firstName', 'lastName'));
8197
+ }));
8263
8198
  ```
8264
8199
 
8265
8200
  @private
@@ -9883,11 +9818,13 @@ enifed('ember-metal/streams/proxy-stream', ['exports', 'ember-runtime/system/obj
9883
9818
 
9884
9819
  exports.default = ProxyStream;
9885
9820
  });
9886
- enifed('ember-metal/streams/stream', ['exports', 'ember-metal/assign', 'ember-metal/debug', 'ember-metal/path_cache', 'ember-metal/observer', 'ember-metal/streams/utils', 'ember-metal/empty_object', 'ember-metal/streams/subscriber', 'ember-metal/streams/dependency', 'ember-metal/utils', 'require'], function (exports, _emberMetalAssign, _emberMetalDebug, _emberMetalPath_cache, _emberMetalObserver, _emberMetalStreamsUtils, _emberMetalEmpty_object, _emberMetalStreamsSubscriber, _emberMetalStreamsDependency, _emberMetalUtils, _require) {
9821
+ enifed('ember-metal/streams/stream', ['exports', 'ember-metal/assign', 'ember-metal/debug', 'ember-metal/path_cache', 'ember-metal/observer', 'ember-metal/streams/utils', 'ember-metal/empty_object', 'ember-metal/streams/subscriber', 'ember-metal/streams/dependency', 'ember-metal/utils', 'require', 'ember-metal/symbol'], function (exports, _emberMetalAssign, _emberMetalDebug, _emberMetalPath_cache, _emberMetalObserver, _emberMetalStreamsUtils, _emberMetalEmpty_object, _emberMetalStreamsSubscriber, _emberMetalStreamsDependency, _emberMetalUtils, _require, _emberMetalSymbol) {
9887
9822
  'use strict';
9888
9823
 
9889
9824
  exports.wrap = wrap;
9825
+ var IS_STREAM = _emberMetalSymbol.default('IS_STREAM');
9890
9826
 
9827
+ exports.IS_STREAM = IS_STREAM;
9891
9828
  /**
9892
9829
  @module ember-metal
9893
9830
  */
@@ -9906,9 +9843,8 @@ enifed('ember-metal/streams/stream', ['exports', 'ember-metal/assign', 'ember-me
9906
9843
  var ProxyMixin;
9907
9844
 
9908
9845
  BasicStream.prototype = {
9909
- isStream: true,
9910
-
9911
9846
  _init: function (label) {
9847
+ this[IS_STREAM] = true;
9912
9848
  this.label = makeLabel(label);
9913
9849
  this.isActive = false;
9914
9850
  this.isDirty = true;
@@ -10308,7 +10244,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
10308
10244
  */
10309
10245
 
10310
10246
  function isStream(object) {
10311
- return object && object.isStream;
10247
+ return object && object[_emberMetalStreamsStream.IS_STREAM];
10312
10248
  }
10313
10249
 
10314
10250
  /*
@@ -10325,7 +10261,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
10325
10261
  */
10326
10262
 
10327
10263
  function subscribe(object, callback, context) {
10328
- if (object && object.isStream) {
10264
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
10329
10265
  return object.subscribe(callback, context);
10330
10266
  }
10331
10267
  }
@@ -10343,7 +10279,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
10343
10279
  */
10344
10280
 
10345
10281
  function unsubscribe(object, callback, context) {
10346
- if (object && object.isStream) {
10282
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
10347
10283
  object.unsubscribe(callback, context);
10348
10284
  }
10349
10285
  }
@@ -10360,7 +10296,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
10360
10296
  */
10361
10297
 
10362
10298
  function read(object) {
10363
- if (object && object.isStream) {
10299
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
10364
10300
  return object.value();
10365
10301
  } else {
10366
10302
  return object;
@@ -10655,7 +10591,7 @@ enifed('ember-metal/streams/utils', ['exports', 'ember-metal/debug', 'ember-meta
10655
10591
  }
10656
10592
 
10657
10593
  function setValue(object, value) {
10658
- if (object && object.isStream) {
10594
+ if (object && object[_emberMetalStreamsStream.IS_STREAM]) {
10659
10595
  object.setValue(value);
10660
10596
  }
10661
10597
  }
@@ -11670,7 +11606,7 @@ enifed('ember-template-compiler/compat', ['exports', 'ember-metal/core', 'ember-
11670
11606
  EmberHandlebars.compile = _emberTemplateCompilerSystemCompile.default;
11671
11607
  EmberHandlebars.template = _emberTemplateCompilerSystemTemplate.default;
11672
11608
  });
11673
- 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/plugins/assert-no-each-in', 'ember-template-compiler/compat'], function (exports, _emberMetal, _emberTemplateCompilerSystemPrecompile, _emberTemplateCompilerSystemCompile, _emberTemplateCompilerSystemTemplate, _emberTemplateCompilerPlugins, _emberTemplateCompilerPluginsTransformOldBindingSyntax, _emberTemplateCompilerPluginsTransformOldClassBindingSyntax, _emberTemplateCompilerPluginsTransformItemClass, _emberTemplateCompilerPluginsTransformClosureComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly, _emberTemplateCompilerPluginsTransformAngleBracketComponents, _emberTemplateCompilerPluginsTransformInputOnToOnEvent, _emberTemplateCompilerPluginsTransformTopLevelComponents, _emberTemplateCompilerPluginsTransformEachIntoCollection, _emberTemplateCompilerPluginsTransformUnescapedInlineLinkTo, _emberTemplateCompilerPluginsAssertNoViewAndControllerPaths, _emberTemplateCompilerPluginsAssertNoViewHelper, _emberTemplateCompilerPluginsAssertNoEachIn, _emberTemplateCompilerCompat) {
11609
+ 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/plugins/assert-no-each-in', '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, _emberTemplateCompilerPluginsAssertNoEachIn, _emberTemplateCompilerCompat) {
11674
11610
  'use strict';
11675
11611
 
11676
11612
  _emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformOldBindingSyntax.default);
@@ -11683,6 +11619,7 @@ enifed('ember-template-compiler/index', ['exports', 'ember-metal', 'ember-templa
11683
11619
  _emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformInputOnToOnEvent.default);
11684
11620
  _emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformTopLevelComponents.default);
11685
11621
  _emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsTransformUnescapedInlineLinkTo.default);
11622
+ _emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsDeprecateRenderBlock.default);
11686
11623
  _emberTemplateCompilerPlugins.registerPlugin('ast', _emberTemplateCompilerPluginsAssertNoEachIn.default);
11687
11624
 
11688
11625
  if (_emberMetal.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT) {
@@ -11871,6 +11808,45 @@ enifed('ember-template-compiler/plugins/assert-no-view-helper', ['exports', 'emb
11871
11808
 
11872
11809
  exports.default = AssertNoViewHelper;
11873
11810
  });
11811
+ enifed('ember-template-compiler/plugins/deprecate-render-block', ['exports', 'ember-metal/debug', 'ember-template-compiler/system/calculate-location-display'], function (exports, _emberMetalDebug, _emberTemplateCompilerSystemCalculateLocationDisplay) {
11812
+ 'use strict';
11813
+
11814
+ exports.default = DeprecateRenderBlock;
11815
+
11816
+ function DeprecateRenderBlock(options) {
11817
+ this.syntax = null;
11818
+ this.options = options;
11819
+ }
11820
+
11821
+ DeprecateRenderBlock.prototype.transform = function DeprecateRenderBlock_transform(ast) {
11822
+ var moduleName = this.options.moduleName;
11823
+ var walker = new this.syntax.Walker();
11824
+
11825
+ walker.visit(ast, function (node) {
11826
+ if (!validate(node)) {
11827
+ return;
11828
+ }
11829
+
11830
+ _emberMetalDebug.deprecate(deprecationMessage(moduleName, node), false, {
11831
+ id: 'ember-template-compiler.deprecate-render-block',
11832
+ until: '2.4.0',
11833
+ url: 'http://emberjs.com/deprecations/v2.x#toc_render-helper-with-block'
11834
+ });
11835
+ });
11836
+
11837
+ return ast;
11838
+ };
11839
+
11840
+ function validate(node) {
11841
+ return node.type === 'BlockStatement' && node.path.original === 'render';
11842
+ }
11843
+
11844
+ function deprecationMessage(moduleName, node) {
11845
+ var sourceInformation = _emberTemplateCompilerSystemCalculateLocationDisplay.default(moduleName, node.loc);
11846
+
11847
+ return 'Usage of `render` in block form is deprecated ' + sourceInformation + '.';
11848
+ }
11849
+ });
11874
11850
  enifed('ember-template-compiler/plugins/transform-angle-bracket-components', ['exports'], function (exports) {
11875
11851
  'use strict';
11876
11852
 
@@ -12778,7 +12754,7 @@ enifed('ember-template-compiler/system/compile_options', ['exports', 'ember-meta
12778
12754
  options.buildMeta = function buildMeta(program) {
12779
12755
  return {
12780
12756
  fragmentReason: fragmentReason(program),
12781
- revision: 'Ember@2.5.0-beta.4',
12757
+ revision: 'Ember@2.5.0',
12782
12758
  loc: program.loc,
12783
12759
  moduleName: options.moduleName
12784
12760
  };
@@ -20690,4 +20666,4 @@ requireModule("ember-template-compiler");
20690
20666
  ;
20691
20667
  if (typeof exports === "object") {
20692
20668
  module.exports = Ember.__loader.require("ember-template-compiler");
20693
- }//# sourceMappingURL=ember-template-compiler.map
20669
+ }