ember-source 2.13.3 → 2.13.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 277f5c87271aa860610239ad208e519382ffcd29
4
- data.tar.gz: 67121680708e8afcfc2cb9cf4c8c57459bbea897
3
+ metadata.gz: 14786f7db2b129001098e8c16ebc2aad354a1bd0
4
+ data.tar.gz: 5417e99c0002a11d65ba17a58363c0d3d4eeb693
5
5
  SHA512:
6
- metadata.gz: 5ed09fed23936ce4420070d5aad25e83746d3f907f10f09db3ef7b5fa3dd4a56b0ac96e4d2317ab543033460a3e586430a29e104c2268c2bbb67b6d222ca1255
7
- data.tar.gz: 4b3d08b15634afd59e35d3e24a11192ab9da71b707e4ae901471d7c851fa6392de6f973550b0c42d6068e789a69e9c481915536ab6d02539f5fe6a07082d4c0d
6
+ metadata.gz: 68b8afaf9d0039d77effe34238ff89249f4c5b31c395b14c283e9249b64864c9ea638f96ececee428e4e0096515411e40730459ac938627361913a2c969f0e48
7
+ data.tar.gz: f34b90fb92dd8740c47a66220f164c5d91e77cfe0efc18d7ad312b02005d36b6a5509f724b464092867987e19bc08452c6e8d5680dfce8613980793f011536a8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.13.3
1
+ 2.13.4
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -1609,7 +1609,14 @@ enifed('container/container', ['exports', 'ember-debug', 'ember-utils', 'ember-e
1609
1609
  var _ret = (function () {
1610
1610
  var validator = {
1611
1611
  get: function (obj, prop) {
1612
- if (prop !== 'class' && prop !== 'create') {
1612
+ if (typeof prop === 'symbol') {
1613
+ return obj[prop];
1614
+ }
1615
+ if (prop === 'inspect') {
1616
+ return undefined; /* for nodes formatter */
1617
+ }
1618
+
1619
+ if (prop !== 'class' && prop !== 'create' && prop !== 'toString') {
1613
1620
  throw new Error('You attempted to access "' + prop + '" on a factory manager created by container#factoryFor. "' + prop + '" is not a member of a factory manager."');
1614
1621
  }
1615
1622
 
@@ -15184,7 +15191,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
15184
15191
 
15185
15192
  /**
15186
15193
  Returns `true` if the passed function returns true for any item in the
15187
- enumeration. This corresponds with the `some()` method in JavaScript 1.6.
15194
+ enumeration.
15188
15195
  The callback method you provide should have the following signature (all
15189
15196
  parameters are optional):
15190
15197
  ```javascript
@@ -15193,7 +15200,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
15193
15200
  - `item` is the current item in the iteration.
15194
15201
  - `index` is the current index in the iteration.
15195
15202
  - `enumerable` is the enumerable object itself.
15196
- It should return the `true` to include the item in the results, `false`
15203
+ It should return `true` to include the item in the results, `false`
15197
15204
  otherwise.
15198
15205
  Note that in addition to a callback, you can also pass an optional target
15199
15206
  object that will be set as `this` on the context. This is a good way
@@ -19943,7 +19950,7 @@ enifed("ember/features", ["exports"], function (exports) {
19943
19950
  enifed("ember/version", ["exports"], function (exports) {
19944
19951
  "use strict";
19945
19952
 
19946
- exports.default = "2.13.3";
19953
+ exports.default = "2.13.4";
19947
19954
  });
19948
19955
  enifed('rsvp', ['exports'], function (exports) {
19949
19956
  'use strict';
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -16197,7 +16197,7 @@ enifed("ember/features", ["exports"], function (exports) {
16197
16197
  enifed("ember/version", ["exports"], function (exports) {
16198
16198
  "use strict";
16199
16199
 
16200
- exports.default = "2.13.3";
16200
+ exports.default = "2.13.4";
16201
16201
  });
16202
16202
  enifed("handlebars", ["exports"], function (exports) {
16203
16203
  /* istanbul ignore next */
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -3229,7 +3229,14 @@ enifed('container/container', ['exports', 'ember-debug', 'ember-utils', 'ember-e
3229
3229
  var _ret = (function () {
3230
3230
  var validator = {
3231
3231
  get: function (obj, prop) {
3232
- if (prop !== 'class' && prop !== 'create') {
3232
+ if (typeof prop === 'symbol') {
3233
+ return obj[prop];
3234
+ }
3235
+ if (prop === 'inspect') {
3236
+ return undefined; /* for nodes formatter */
3237
+ }
3238
+
3239
+ if (prop !== 'class' && prop !== 'create' && prop !== 'toString') {
3233
3240
  throw new Error('You attempted to access "' + prop + '" on a factory manager created by container#factoryFor. "' + prop + '" is not a member of a factory manager."');
3234
3241
  }
3235
3242
 
@@ -12814,63 +12821,6 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-debug', 'ember-glim
12814
12821
  exports.inlineIf = inlineIf;
12815
12822
  exports.inlineUnless = inlineUnless;
12816
12823
 
12817
- /**
12818
- Use the `if` block helper to conditionally render a block depending on a
12819
- property. If the property is "falsey", for example: `false`, `undefined`,
12820
- `null`, `""`, `0`, `NaN` or an empty array, the block will not be rendered.
12821
-
12822
- ```handlebars
12823
- {{! will not render if foo is falsey}}
12824
- {{#if foo}}
12825
- Welcome to the {{foo.bar}}
12826
- {{/if}}
12827
- ```
12828
-
12829
- You can also specify a template to show if the property is falsey by using
12830
- the `else` helper.
12831
-
12832
- ```handlebars
12833
- {{! is it raining outside?}}
12834
- {{#if isRaining}}
12835
- Yes, grab an umbrella!
12836
- {{else}}
12837
- No, it's lovely outside!
12838
- {{/if}}
12839
- ```
12840
-
12841
- You are also able to combine `else` and `if` helpers to create more complex
12842
- conditional logic.
12843
-
12844
- ```handlebars
12845
- {{#if isMorning}}
12846
- Good morning
12847
- {{else if isAfternoon}}
12848
- Good afternoon
12849
- {{else}}
12850
- Good night
12851
- {{/if}}
12852
- ```
12853
-
12854
- You can use `if` inline to conditionally render a single property or string.
12855
- This helper acts like a ternary operator. If the first property is truthy,
12856
- the second argument will be displayed, if not, the third argument will be
12857
- displayed
12858
-
12859
- ```handlebars
12860
- {{if useLongGreeting "Hello" "Hi"}} Dave
12861
- ```
12862
-
12863
- Finally, you can use the `if` helper inside another helper as a subexpression.
12864
-
12865
- ```handlebars
12866
- {{some-component height=(if isBig "100" "10")}}
12867
- ```
12868
-
12869
- @method if
12870
- @for Ember.Templates.helpers
12871
- @public
12872
- */
12873
-
12874
12824
  var ConditionalHelperReference = (function (_CachedReference) {
12875
12825
  babelHelpers.inherits(ConditionalHelperReference, _CachedReference);
12876
12826
 
@@ -12900,21 +12850,83 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-debug', 'ember-glim
12900
12850
  }
12901
12851
 
12902
12852
  /**
12853
+ The `if` helper allows you to conditionally render one of two branches,
12854
+ depending on the "truthiness" of a property.
12855
+ For example the following values are all falsey: `false`, `undefined`, `null`, `""`, `0`, `NaN` or an empty array.
12856
+
12857
+ This helper has two forms, block and inline.
12858
+
12859
+ ## Block form
12860
+
12861
+ You can use the block form of `if` to conditionally render a section of the template.
12862
+
12863
+ To use it, pass the conditional value to the `if` helper,
12864
+ using the block form to wrap the section of template you want to conditionally render.
12865
+ Like so:
12866
+
12867
+ ```handlebars
12868
+ {{! will not render if foo is falsey}}
12869
+ {{#if foo}}
12870
+ Welcome to the {{foo.bar}}
12871
+ {{/if}}
12872
+ ```
12873
+
12874
+ You can also specify a template to show if the property is falsey by using
12875
+ the `else` helper.
12876
+
12877
+ ```handlebars
12878
+ {{! is it raining outside?}}
12879
+ {{#if isRaining}}
12880
+ Yes, grab an umbrella!
12881
+ {{else}}
12882
+ No, it's lovely outside!
12883
+ {{/if}}
12884
+ ```
12885
+
12886
+ You are also able to combine `else` and `if` helpers to create more complex
12887
+ conditional logic.
12888
+
12889
+ ```handlebars
12890
+ {{#if isMorning}}
12891
+ Good morning
12892
+ {{else if isAfternoon}}
12893
+ Good afternoon
12894
+ {{else}}
12895
+ Good night
12896
+ {{/if}}
12897
+ ```
12898
+
12899
+ ## Inline form
12900
+
12903
12901
  The inline `if` helper conditionally renders a single property or string.
12904
- This helper acts like a ternary operator. If the first property is truthy,
12905
- the second argument will be displayed, otherwise, the third argument will be
12906
- displayed
12902
+
12903
+ In this form, the `if` helper receives three arguments, the conditional value,
12904
+ the value to render when truthy, and the value to render when falsey.
12905
+
12906
+ For example, if `useLongGreeting` is truthy, the following:
12907
12907
 
12908
12908
  ```handlebars
12909
12909
  {{if useLongGreeting "Hello" "Hi"}} Alex
12910
12910
  ```
12911
12911
 
12912
- You can use the `if` helper inside another helper as a subexpression.
12912
+ Will render:
12913
+
12914
+ ```html
12915
+ Hello Alex
12916
+ ```
12917
+
12918
+ ### Nested `if`
12919
+
12920
+ You can use the `if` helper inside another helper as a nested helper:
12913
12921
 
12914
12922
  ```handlebars
12915
12923
  {{some-component height=(if isBig "100" "10")}}
12916
12924
  ```
12917
12925
 
12926
+ One detail to keep in mind is that both branches of the `if` helper will be evaluated,
12927
+ so if you have `{{if condition "foo" (expensive-operation "bar")`,
12928
+ `expensive-operation` will always calculate.
12929
+
12918
12930
  @method if
12919
12931
  @for Ember.Templates.helpers
12920
12932
  @public
@@ -17109,6 +17121,22 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17109
17121
  exports.NULL_REFERENCE = _glimmerRuntime.NULL_REFERENCE;
17110
17122
  exports.UNDEFINED_REFERENCE = _glimmerRuntime.UNDEFINED_REFERENCE;
17111
17123
 
17124
+ var maybeFreeze = undefined;
17125
+ _emberDebug.runInDebug(function () {
17126
+ // gaurding this in a DEBUG gaurd (as well as all invocations)
17127
+ // so that it is properly stripped during the minification's
17128
+ // dead code elimination
17129
+ maybeFreeze = function (obj) {
17130
+ // re-freezing an already frozen object introduces a significant
17131
+ // performance penalty on Chrome (tested through 59).
17132
+ //
17133
+ // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450
17134
+ if (!Object.isFrozen(obj) && _emberUtils.HAS_NATIVE_WEAKMAP) {
17135
+ Object.freeze(obj);
17136
+ }
17137
+ };
17138
+ });
17139
+
17112
17140
  // @abstract
17113
17141
  // @implements PathReference
17114
17142
 
@@ -17456,10 +17484,8 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17456
17484
  var namedValue = named.value();
17457
17485
 
17458
17486
  _emberDebug.runInDebug(function () {
17459
- if (_emberUtils.HAS_NATIVE_WEAKMAP) {
17460
- Object.freeze(positionalValue);
17461
- Object.freeze(namedValue);
17462
- }
17487
+ maybeFreeze(positionalValue);
17488
+ maybeFreeze(namedValue);
17463
17489
  });
17464
17490
 
17465
17491
  var result = helper(positionalValue, namedValue);
@@ -17509,10 +17535,8 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17509
17535
  var namedValue = named.value();
17510
17536
 
17511
17537
  _emberDebug.runInDebug(function () {
17512
- if (_emberUtils.HAS_NATIVE_WEAKMAP) {
17513
- Object.freeze(positionalValue);
17514
- Object.freeze(namedValue);
17515
- }
17538
+ maybeFreeze(positionalValue);
17539
+ maybeFreeze(namedValue);
17516
17540
  });
17517
17541
 
17518
17542
  return helper(positionalValue, namedValue);
@@ -17552,10 +17576,8 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17552
17576
  var namedValue = named.value();
17553
17577
 
17554
17578
  _emberDebug.runInDebug(function () {
17555
- if (_emberUtils.HAS_NATIVE_WEAKMAP) {
17556
- Object.freeze(positionalValue);
17557
- Object.freeze(namedValue);
17558
- }
17579
+ maybeFreeze(positionalValue);
17580
+ maybeFreeze(namedValue);
17559
17581
  });
17560
17582
 
17561
17583
  return instance.compute(positionalValue, namedValue);
@@ -35707,7 +35729,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
35707
35729
 
35708
35730
  /**
35709
35731
  Returns `true` if the passed function returns true for any item in the
35710
- enumeration. This corresponds with the `some()` method in JavaScript 1.6.
35732
+ enumeration.
35711
35733
  The callback method you provide should have the following signature (all
35712
35734
  parameters are optional):
35713
35735
  ```javascript
@@ -35716,7 +35738,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
35716
35738
  - `item` is the current item in the iteration.
35717
35739
  - `index` is the current index in the iteration.
35718
35740
  - `enumerable` is the enumerable object itself.
35719
- It should return the `true` to include the item in the results, `false`
35741
+ It should return `true` to include the item in the results, `false`
35720
35742
  otherwise.
35721
35743
  Note that in addition to a callback, you can also pass an optional target
35722
35744
  object that will be set as `this` on the context. This is a good way
@@ -45573,7 +45595,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
45573
45595
  enifed("ember/version", ["exports"], function (exports) {
45574
45596
  "use strict";
45575
45597
 
45576
- exports.default = "2.13.3";
45598
+ exports.default = "2.13.4";
45577
45599
  });
45578
45600
  enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
45579
45601
  'use strict';
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -3229,7 +3229,14 @@ enifed('container/container', ['exports', 'ember-debug', 'ember-utils', 'ember-e
3229
3229
  var _ret = (function () {
3230
3230
  var validator = {
3231
3231
  get: function (obj, prop) {
3232
- if (prop !== 'class' && prop !== 'create') {
3232
+ if (typeof prop === 'symbol') {
3233
+ return obj[prop];
3234
+ }
3235
+ if (prop === 'inspect') {
3236
+ return undefined; /* for nodes formatter */
3237
+ }
3238
+
3239
+ if (prop !== 'class' && prop !== 'create' && prop !== 'toString') {
3233
3240
  throw new Error('You attempted to access "' + prop + '" on a factory manager created by container#factoryFor. "' + prop + '" is not a member of a factory manager."');
3234
3241
  }
3235
3242
 
@@ -12814,63 +12821,6 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-debug', 'ember-glim
12814
12821
  exports.inlineIf = inlineIf;
12815
12822
  exports.inlineUnless = inlineUnless;
12816
12823
 
12817
- /**
12818
- Use the `if` block helper to conditionally render a block depending on a
12819
- property. If the property is "falsey", for example: `false`, `undefined`,
12820
- `null`, `""`, `0`, `NaN` or an empty array, the block will not be rendered.
12821
-
12822
- ```handlebars
12823
- {{! will not render if foo is falsey}}
12824
- {{#if foo}}
12825
- Welcome to the {{foo.bar}}
12826
- {{/if}}
12827
- ```
12828
-
12829
- You can also specify a template to show if the property is falsey by using
12830
- the `else` helper.
12831
-
12832
- ```handlebars
12833
- {{! is it raining outside?}}
12834
- {{#if isRaining}}
12835
- Yes, grab an umbrella!
12836
- {{else}}
12837
- No, it's lovely outside!
12838
- {{/if}}
12839
- ```
12840
-
12841
- You are also able to combine `else` and `if` helpers to create more complex
12842
- conditional logic.
12843
-
12844
- ```handlebars
12845
- {{#if isMorning}}
12846
- Good morning
12847
- {{else if isAfternoon}}
12848
- Good afternoon
12849
- {{else}}
12850
- Good night
12851
- {{/if}}
12852
- ```
12853
-
12854
- You can use `if` inline to conditionally render a single property or string.
12855
- This helper acts like a ternary operator. If the first property is truthy,
12856
- the second argument will be displayed, if not, the third argument will be
12857
- displayed
12858
-
12859
- ```handlebars
12860
- {{if useLongGreeting "Hello" "Hi"}} Dave
12861
- ```
12862
-
12863
- Finally, you can use the `if` helper inside another helper as a subexpression.
12864
-
12865
- ```handlebars
12866
- {{some-component height=(if isBig "100" "10")}}
12867
- ```
12868
-
12869
- @method if
12870
- @for Ember.Templates.helpers
12871
- @public
12872
- */
12873
-
12874
12824
  var ConditionalHelperReference = (function (_CachedReference) {
12875
12825
  babelHelpers.inherits(ConditionalHelperReference, _CachedReference);
12876
12826
 
@@ -12900,21 +12850,83 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-debug', 'ember-glim
12900
12850
  }
12901
12851
 
12902
12852
  /**
12853
+ The `if` helper allows you to conditionally render one of two branches,
12854
+ depending on the "truthiness" of a property.
12855
+ For example the following values are all falsey: `false`, `undefined`, `null`, `""`, `0`, `NaN` or an empty array.
12856
+
12857
+ This helper has two forms, block and inline.
12858
+
12859
+ ## Block form
12860
+
12861
+ You can use the block form of `if` to conditionally render a section of the template.
12862
+
12863
+ To use it, pass the conditional value to the `if` helper,
12864
+ using the block form to wrap the section of template you want to conditionally render.
12865
+ Like so:
12866
+
12867
+ ```handlebars
12868
+ {{! will not render if foo is falsey}}
12869
+ {{#if foo}}
12870
+ Welcome to the {{foo.bar}}
12871
+ {{/if}}
12872
+ ```
12873
+
12874
+ You can also specify a template to show if the property is falsey by using
12875
+ the `else` helper.
12876
+
12877
+ ```handlebars
12878
+ {{! is it raining outside?}}
12879
+ {{#if isRaining}}
12880
+ Yes, grab an umbrella!
12881
+ {{else}}
12882
+ No, it's lovely outside!
12883
+ {{/if}}
12884
+ ```
12885
+
12886
+ You are also able to combine `else` and `if` helpers to create more complex
12887
+ conditional logic.
12888
+
12889
+ ```handlebars
12890
+ {{#if isMorning}}
12891
+ Good morning
12892
+ {{else if isAfternoon}}
12893
+ Good afternoon
12894
+ {{else}}
12895
+ Good night
12896
+ {{/if}}
12897
+ ```
12898
+
12899
+ ## Inline form
12900
+
12903
12901
  The inline `if` helper conditionally renders a single property or string.
12904
- This helper acts like a ternary operator. If the first property is truthy,
12905
- the second argument will be displayed, otherwise, the third argument will be
12906
- displayed
12902
+
12903
+ In this form, the `if` helper receives three arguments, the conditional value,
12904
+ the value to render when truthy, and the value to render when falsey.
12905
+
12906
+ For example, if `useLongGreeting` is truthy, the following:
12907
12907
 
12908
12908
  ```handlebars
12909
12909
  {{if useLongGreeting "Hello" "Hi"}} Alex
12910
12910
  ```
12911
12911
 
12912
- You can use the `if` helper inside another helper as a subexpression.
12912
+ Will render:
12913
+
12914
+ ```html
12915
+ Hello Alex
12916
+ ```
12917
+
12918
+ ### Nested `if`
12919
+
12920
+ You can use the `if` helper inside another helper as a nested helper:
12913
12921
 
12914
12922
  ```handlebars
12915
12923
  {{some-component height=(if isBig "100" "10")}}
12916
12924
  ```
12917
12925
 
12926
+ One detail to keep in mind is that both branches of the `if` helper will be evaluated,
12927
+ so if you have `{{if condition "foo" (expensive-operation "bar")`,
12928
+ `expensive-operation` will always calculate.
12929
+
12918
12930
  @method if
12919
12931
  @for Ember.Templates.helpers
12920
12932
  @public
@@ -17109,6 +17121,22 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17109
17121
  exports.NULL_REFERENCE = _glimmerRuntime.NULL_REFERENCE;
17110
17122
  exports.UNDEFINED_REFERENCE = _glimmerRuntime.UNDEFINED_REFERENCE;
17111
17123
 
17124
+ var maybeFreeze = undefined;
17125
+ _emberDebug.runInDebug(function () {
17126
+ // gaurding this in a DEBUG gaurd (as well as all invocations)
17127
+ // so that it is properly stripped during the minification's
17128
+ // dead code elimination
17129
+ maybeFreeze = function (obj) {
17130
+ // re-freezing an already frozen object introduces a significant
17131
+ // performance penalty on Chrome (tested through 59).
17132
+ //
17133
+ // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450
17134
+ if (!Object.isFrozen(obj) && _emberUtils.HAS_NATIVE_WEAKMAP) {
17135
+ Object.freeze(obj);
17136
+ }
17137
+ };
17138
+ });
17139
+
17112
17140
  // @abstract
17113
17141
  // @implements PathReference
17114
17142
 
@@ -17456,10 +17484,8 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17456
17484
  var namedValue = named.value();
17457
17485
 
17458
17486
  _emberDebug.runInDebug(function () {
17459
- if (_emberUtils.HAS_NATIVE_WEAKMAP) {
17460
- Object.freeze(positionalValue);
17461
- Object.freeze(namedValue);
17462
- }
17487
+ maybeFreeze(positionalValue);
17488
+ maybeFreeze(namedValue);
17463
17489
  });
17464
17490
 
17465
17491
  var result = helper(positionalValue, namedValue);
@@ -17509,10 +17535,8 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17509
17535
  var namedValue = named.value();
17510
17536
 
17511
17537
  _emberDebug.runInDebug(function () {
17512
- if (_emberUtils.HAS_NATIVE_WEAKMAP) {
17513
- Object.freeze(positionalValue);
17514
- Object.freeze(namedValue);
17515
- }
17538
+ maybeFreeze(positionalValue);
17539
+ maybeFreeze(namedValue);
17516
17540
  });
17517
17541
 
17518
17542
  return helper(positionalValue, namedValue);
@@ -17552,10 +17576,8 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
17552
17576
  var namedValue = named.value();
17553
17577
 
17554
17578
  _emberDebug.runInDebug(function () {
17555
- if (_emberUtils.HAS_NATIVE_WEAKMAP) {
17556
- Object.freeze(positionalValue);
17557
- Object.freeze(namedValue);
17558
- }
17579
+ maybeFreeze(positionalValue);
17580
+ maybeFreeze(namedValue);
17559
17581
  });
17560
17582
 
17561
17583
  return instance.compute(positionalValue, namedValue);
@@ -35707,7 +35729,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
35707
35729
 
35708
35730
  /**
35709
35731
  Returns `true` if the passed function returns true for any item in the
35710
- enumeration. This corresponds with the `some()` method in JavaScript 1.6.
35732
+ enumeration.
35711
35733
  The callback method you provide should have the following signature (all
35712
35734
  parameters are optional):
35713
35735
  ```javascript
@@ -35716,7 +35738,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
35716
35738
  - `item` is the current item in the iteration.
35717
35739
  - `index` is the current index in the iteration.
35718
35740
  - `enumerable` is the enumerable object itself.
35719
- It should return the `true` to include the item in the results, `false`
35741
+ It should return `true` to include the item in the results, `false`
35720
35742
  otherwise.
35721
35743
  Note that in addition to a callback, you can also pass an optional target
35722
35744
  object that will be set as `this` on the context. This is a good way
@@ -45573,7 +45595,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
45573
45595
  enifed("ember/version", ["exports"], function (exports) {
45574
45596
  "use strict";
45575
45597
 
45576
- exports.default = "2.13.3";
45598
+ exports.default = "2.13.4";
45577
45599
  });
45578
45600
  enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
45579
45601
  'use strict';
@@ -2885,7 +2885,7 @@ g.setDiff=l.setDiff,g.mapBy=l.mapBy,g.filter=l.filter,g.filterBy=l.filterBy,g.un
2885
2885
  var y=o.default.Handlebars=o.default.Handlebars||{},b=o.default.HTMLBars=o.default.HTMLBars||{},_=y.Utils=y.Utils||{}
2886
2886
  if(Object.defineProperty(y,"SafeString",{get:c._getSafeString}),b.template=y.template=c.template,_.escapeExpression=c.escapeExpression,l.String.htmlSafe=c.htmlSafe,l.String.isHTMLSafe=c.isHTMLSafe,b.makeBoundHelper=c.makeBoundHelper,Object.defineProperty(o.default,"TEMPLATES",{get:c.getTemplates,set:c.setTemplates,configurable:!1,enumerable:!1}),e.VERSION=p.default,o.default.VERSION=p.default,o.libraries.registerCoreLibrary("Ember",p.default),o.default.create=s.deprecateFunc("Ember.create is deprecated in favor of Object.create",{id:"ember-metal.ember-create",until:"3.0.0"},Object.create),o.default.keys=s.deprecateFunc("Ember.keys is deprecated in favor of Object.keys",{id:"ember-metal.ember.keys",until:"3.0.0"},Object.keys),o.default.$=h.jQuery,o.default.ViewTargetActionSupport=h.ViewTargetActionSupport,o.default.ViewUtils={isSimpleClick:h.isSimpleClick,getViewElement:h.getViewElement,getViewBounds:h.getViewBounds,getViewClientRects:h.getViewClientRects,getViewBoundingClientRect:h.getViewBoundingClientRect,getRootViews:h.getRootViews,getChildViews:h.getChildViews},o.default.TextSupport=h.TextSupport,o.default.ComponentLookup=h.ComponentLookup,o.default.EventDispatcher=h.EventDispatcher,o.default.Location=f.Location,o.default.AutoLocation=f.AutoLocation,o.default.HashLocation=f.HashLocation,o.default.HistoryLocation=f.HistoryLocation,o.default.NoneLocation=f.NoneLocation,o.default.controllerFor=f.controllerFor,o.default.generateControllerFactory=f.generateControllerFactory,o.default.generateController=f.generateController,o.default.RouterDSL=f.RouterDSL,o.default.Router=f.Router,o.default.Route=f.Route,o.default.Application=d.Application,o.default.ApplicationInstance=d.ApplicationInstance,o.default.Engine=d.Engine,o.default.EngineInstance=d.EngineInstance,o.default.DefaultResolver=o.default.Resolver=d.Resolver,l.runLoadHooks("Ember.Application",d.Application),o.default.DataAdapter=m.DataAdapter,o.default.ContainerDebugAdapter=m.ContainerDebugAdapter,t.has("ember-template-compiler")&&t.default("ember-template-compiler"),t.has("ember-testing")){var w=t.default("ember-testing")
2887
2887
  o.default.Test=w.Test,o.default.Test.Adapter=w.Adapter,o.default.Test.QUnitAdapter=w.QUnitAdapter,o.default.setupForTesting=w.setupForTesting}l.runLoadHooks("Ember"),e.default=o.default,"object"==typeof module&&module.exports?module.exports=o.default:n.context.exports.Ember=n.context.exports.Em=o.default}),s("ember/version",["exports"],function(e){"use strict"
2888
- e.default="2.13.3"}),s("internal-test-helpers/apply-mixins",["exports","ember-utils"],function(e,t){"use strict"
2888
+ e.default="2.13.4"}),s("internal-test-helpers/apply-mixins",["exports","ember-utils"],function(e,t){"use strict"
2889
2889
  function n(e){return Array.isArray(e.cases)&&"function"==typeof e.generate}function r(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o]
2890
2890
  return i.forEach(function(r){var i=void 0
2891
2891
  n(r)?function(){var e=r
@@ -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.13.3
9
+ * @version 2.13.4
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -3209,7 +3209,14 @@ enifed('container/container', ['exports', 'ember-debug', 'ember-utils', 'ember-e
3209
3209
  var _ret = (function () {
3210
3210
  var validator = {
3211
3211
  get: function (obj, prop) {
3212
- if (prop !== 'class' && prop !== 'create') {
3212
+ if (typeof prop === 'symbol') {
3213
+ return obj[prop];
3214
+ }
3215
+ if (prop === 'inspect') {
3216
+ return undefined; /* for nodes formatter */
3217
+ }
3218
+
3219
+ if (prop !== 'class' && prop !== 'create' && prop !== 'toString') {
3213
3220
  throw new Error('You attempted to access "' + prop + '" on a factory manager created by container#factoryFor. "' + prop + '" is not a member of a factory manager."');
3214
3221
  }
3215
3222
 
@@ -12558,63 +12565,6 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-debug', 'ember-glim
12558
12565
  exports.inlineIf = inlineIf;
12559
12566
  exports.inlineUnless = inlineUnless;
12560
12567
 
12561
- /**
12562
- Use the `if` block helper to conditionally render a block depending on a
12563
- property. If the property is "falsey", for example: `false`, `undefined`,
12564
- `null`, `""`, `0`, `NaN` or an empty array, the block will not be rendered.
12565
-
12566
- ```handlebars
12567
- {{! will not render if foo is falsey}}
12568
- {{#if foo}}
12569
- Welcome to the {{foo.bar}}
12570
- {{/if}}
12571
- ```
12572
-
12573
- You can also specify a template to show if the property is falsey by using
12574
- the `else` helper.
12575
-
12576
- ```handlebars
12577
- {{! is it raining outside?}}
12578
- {{#if isRaining}}
12579
- Yes, grab an umbrella!
12580
- {{else}}
12581
- No, it's lovely outside!
12582
- {{/if}}
12583
- ```
12584
-
12585
- You are also able to combine `else` and `if` helpers to create more complex
12586
- conditional logic.
12587
-
12588
- ```handlebars
12589
- {{#if isMorning}}
12590
- Good morning
12591
- {{else if isAfternoon}}
12592
- Good afternoon
12593
- {{else}}
12594
- Good night
12595
- {{/if}}
12596
- ```
12597
-
12598
- You can use `if` inline to conditionally render a single property or string.
12599
- This helper acts like a ternary operator. If the first property is truthy,
12600
- the second argument will be displayed, if not, the third argument will be
12601
- displayed
12602
-
12603
- ```handlebars
12604
- {{if useLongGreeting "Hello" "Hi"}} Dave
12605
- ```
12606
-
12607
- Finally, you can use the `if` helper inside another helper as a subexpression.
12608
-
12609
- ```handlebars
12610
- {{some-component height=(if isBig "100" "10")}}
12611
- ```
12612
-
12613
- @method if
12614
- @for Ember.Templates.helpers
12615
- @public
12616
- */
12617
-
12618
12568
  var ConditionalHelperReference = (function (_CachedReference) {
12619
12569
  babelHelpers.inherits(ConditionalHelperReference, _CachedReference);
12620
12570
 
@@ -12642,21 +12592,83 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-debug', 'ember-glim
12642
12592
  }
12643
12593
 
12644
12594
  /**
12595
+ The `if` helper allows you to conditionally render one of two branches,
12596
+ depending on the "truthiness" of a property.
12597
+ For example the following values are all falsey: `false`, `undefined`, `null`, `""`, `0`, `NaN` or an empty array.
12598
+
12599
+ This helper has two forms, block and inline.
12600
+
12601
+ ## Block form
12602
+
12603
+ You can use the block form of `if` to conditionally render a section of the template.
12604
+
12605
+ To use it, pass the conditional value to the `if` helper,
12606
+ using the block form to wrap the section of template you want to conditionally render.
12607
+ Like so:
12608
+
12609
+ ```handlebars
12610
+ {{! will not render if foo is falsey}}
12611
+ {{#if foo}}
12612
+ Welcome to the {{foo.bar}}
12613
+ {{/if}}
12614
+ ```
12615
+
12616
+ You can also specify a template to show if the property is falsey by using
12617
+ the `else` helper.
12618
+
12619
+ ```handlebars
12620
+ {{! is it raining outside?}}
12621
+ {{#if isRaining}}
12622
+ Yes, grab an umbrella!
12623
+ {{else}}
12624
+ No, it's lovely outside!
12625
+ {{/if}}
12626
+ ```
12627
+
12628
+ You are also able to combine `else` and `if` helpers to create more complex
12629
+ conditional logic.
12630
+
12631
+ ```handlebars
12632
+ {{#if isMorning}}
12633
+ Good morning
12634
+ {{else if isAfternoon}}
12635
+ Good afternoon
12636
+ {{else}}
12637
+ Good night
12638
+ {{/if}}
12639
+ ```
12640
+
12641
+ ## Inline form
12642
+
12645
12643
  The inline `if` helper conditionally renders a single property or string.
12646
- This helper acts like a ternary operator. If the first property is truthy,
12647
- the second argument will be displayed, otherwise, the third argument will be
12648
- displayed
12644
+
12645
+ In this form, the `if` helper receives three arguments, the conditional value,
12646
+ the value to render when truthy, and the value to render when falsey.
12647
+
12648
+ For example, if `useLongGreeting` is truthy, the following:
12649
12649
 
12650
12650
  ```handlebars
12651
12651
  {{if useLongGreeting "Hello" "Hi"}} Alex
12652
12652
  ```
12653
12653
 
12654
- You can use the `if` helper inside another helper as a subexpression.
12654
+ Will render:
12655
+
12656
+ ```html
12657
+ Hello Alex
12658
+ ```
12659
+
12660
+ ### Nested `if`
12661
+
12662
+ You can use the `if` helper inside another helper as a nested helper:
12655
12663
 
12656
12664
  ```handlebars
12657
12665
  {{some-component height=(if isBig "100" "10")}}
12658
12666
  ```
12659
12667
 
12668
+ One detail to keep in mind is that both branches of the `if` helper will be evaluated,
12669
+ so if you have `{{if condition "foo" (expensive-operation "bar")`,
12670
+ `expensive-operation` will always calculate.
12671
+
12660
12672
  @method if
12661
12673
  @for Ember.Templates.helpers
12662
12674
  @public
@@ -16492,6 +16504,8 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
16492
16504
  exports.NULL_REFERENCE = _glimmerRuntime.NULL_REFERENCE;
16493
16505
  exports.UNDEFINED_REFERENCE = _glimmerRuntime.UNDEFINED_REFERENCE;
16494
16506
 
16507
+ var maybeFreeze = undefined;
16508
+
16495
16509
  // @abstract
16496
16510
  // @implements PathReference
16497
16511
 
@@ -16945,6 +16959,15 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-utils', 'ember-metal
16945
16959
 
16946
16960
  exports.UnboundReference = UnboundReference;
16947
16961
  });
16962
+
16963
+ // gaurding this in a DEBUG gaurd (as well as all invocations)
16964
+ // so that it is properly stripped during the minification's
16965
+ // dead code elimination
16966
+
16967
+ // re-freezing an already frozen object introduces a significant
16968
+ // performance penalty on Chrome (tested through 59).
16969
+ //
16970
+ // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450
16948
16971
  enifed('ember-glimmer/utils/string', ['exports', 'ember-debug'], function (exports, _emberDebug) {
16949
16972
  /**
16950
16973
  @module ember
@@ -34697,7 +34720,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
34697
34720
 
34698
34721
  /**
34699
34722
  Returns `true` if the passed function returns true for any item in the
34700
- enumeration. This corresponds with the `some()` method in JavaScript 1.6.
34723
+ enumeration.
34701
34724
  The callback method you provide should have the following signature (all
34702
34725
  parameters are optional):
34703
34726
  ```javascript
@@ -34706,7 +34729,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
34706
34729
  - `item` is the current item in the iteration.
34707
34730
  - `index` is the current index in the iteration.
34708
34731
  - `enumerable` is the enumerable object itself.
34709
- It should return the `true` to include the item in the results, `false`
34732
+ It should return `true` to include the item in the results, `false`
34710
34733
  otherwise.
34711
34734
  Note that in addition to a callback, you can also pass an optional target
34712
34735
  object that will be set as `this` on the context. This is a good way
@@ -42694,7 +42717,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
42694
42717
  enifed("ember/version", ["exports"], function (exports) {
42695
42718
  "use strict";
42696
42719
 
42697
- exports.default = "2.13.3";
42720
+ exports.default = "2.13.4";
42698
42721
  });
42699
42722
  enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
42700
42723
  'use strict';
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.3
4
+ version: 2.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ember.js source code wrapper for use with Ruby libs.
14
14
  email:
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  version: '0'
50
50
  requirements: []
51
51
  rubyforge_project:
52
- rubygems_version: 2.5.1
52
+ rubygems_version: 2.6.8
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: Ember.js source code wrapper.