ember-source 2.17.0.beta.5 → 2.17.0.beta.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dist/ember-runtime.js +4 -1
- data/dist/ember-template-compiler.js +5 -2
- data/dist/ember-testing.js +1 -1
- data/dist/ember-tests.js +42 -3
- data/dist/ember-tests.prod.js +42 -3
- data/dist/ember.debug.js +48 -24
- data/dist/ember.min.js +12 -10
- data/dist/ember.prod.js +50 -24
- data/package.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc76f1256f89281f1101a8b6cbe18ce6aa8d808acc7ad972f464ee2bd60868e4
|
4
|
+
data.tar.gz: 435fc50d189de1e04e3ac470f1d702636b0e7cbf6c2fec895c59537445b47e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfdfa4749ec734d52da0084ee4b7e8a409706159a30c02dc87ea3b76f1fe3ce7c9e9a0d2726e8ce6ab548c7c6b75617f6753d7c324c1d9caa2518bd4a8e97c0e
|
7
|
+
data.tar.gz: '09287926dee6a4217d256fb8d877419c74a8e8945f4082adbcd59c4723cd5c16db6ac5ddc6ece5bd3e22f8dc01409eafce011902cae2816e6302f07fdf742846'
|
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.17.0-beta.
|
9
|
+
* @version 2.17.0-beta.6
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -3286,8 +3286,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
3286
3286
|
if (paths === undefined) {
|
3287
3287
|
return;
|
3288
3288
|
}
|
3289
|
+
|
3289
3290
|
if (paths[path] > 0) {
|
3290
3291
|
paths[path]--;
|
3292
|
+
} else {
|
3293
|
+
return;
|
3291
3294
|
}
|
3292
3295
|
|
3293
3296
|
var key = firstKey(path);
|
@@ -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.17.0-beta.
|
9
|
+
* @version 2.17.0-beta.6
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -9555,8 +9555,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
9555
9555
|
if (paths === undefined) {
|
9556
9556
|
return;
|
9557
9557
|
}
|
9558
|
+
|
9558
9559
|
if (paths[path] > 0) {
|
9559
9560
|
paths[path]--;
|
9561
|
+
} else {
|
9562
|
+
return;
|
9560
9563
|
}
|
9561
9564
|
|
9562
9565
|
var key = firstKey(path);
|
@@ -17352,7 +17355,7 @@ enifed('ember/features', ['exports', 'ember-environment', 'ember-utils'], functi
|
|
17352
17355
|
enifed("ember/version", ["exports"], function (exports) {
|
17353
17356
|
"use strict";
|
17354
17357
|
|
17355
|
-
exports.default = "2.17.0-beta.
|
17358
|
+
exports.default = "2.17.0-beta.6";
|
17356
17359
|
});
|
17357
17360
|
enifed("handlebars", ["exports"], function (exports) {
|
17358
17361
|
"use strict";
|
data/dist/ember-testing.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.17.0-beta.
|
9
|
+
* @version 2.17.0-beta.6
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
data/dist/ember-tests.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.17.0-beta.
|
9
|
+
* @version 2.17.0-beta.6
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -2572,7 +2572,7 @@ enifed('ember-application/tests/system/dependency_injection/default_resolver_tes
|
|
2572
2572
|
|
2573
2573
|
var lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;
|
2574
2574
|
|
2575
|
-
assert.ok(lookedUpShorthandHelper.
|
2575
|
+
assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');
|
2576
2576
|
|
2577
2577
|
var lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;
|
2578
2578
|
|
@@ -2589,7 +2589,7 @@ enifed('ember-application/tests/system/dependency_injection/default_resolver_tes
|
|
2589
2589
|
|
2590
2590
|
var lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;
|
2591
2591
|
|
2592
|
-
assert.ok(lookedUpShorthandHelper.
|
2592
|
+
assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');
|
2593
2593
|
|
2594
2594
|
var lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;
|
2595
2595
|
|
@@ -25553,6 +25553,32 @@ enifed('ember-glimmer/tests/integration/helpers/custom-helper-test', ['ember-bab
|
|
25553
25553
|
equal(destroyCount, 1, 'destroy is called after a view is destroyed');
|
25554
25554
|
};
|
25555
25555
|
|
25556
|
+
_class.prototype['@test simple helper can be invoked manually via `owner.factoryFor(...).create().compute()'] = function testSimpleHelperCanBeInvokedManuallyViaOwnerFactoryForCreateCompute(assert) {
|
25557
|
+
this.registerHelper('some-helper', function () {
|
25558
|
+
assert.ok(true, 'some-helper helper invoked');
|
25559
|
+
return 'lolol';
|
25560
|
+
});
|
25561
|
+
|
25562
|
+
var instance = this.owner.factoryFor('helper:some-helper').create();
|
25563
|
+
|
25564
|
+
assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');
|
25565
|
+
assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');
|
25566
|
+
};
|
25567
|
+
|
25568
|
+
_class.prototype['@test class-based helper can be invoked manually via `owner.factoryFor(...).create().compute()'] = function testClassBasedHelperCanBeInvokedManuallyViaOwnerFactoryForCreateCompute() {
|
25569
|
+
this.registerHelper('some-helper', {
|
25570
|
+
compute: function () {
|
25571
|
+
assert.ok(true, 'some-helper helper invoked');
|
25572
|
+
return 'lolol';
|
25573
|
+
}
|
25574
|
+
});
|
25575
|
+
|
25576
|
+
var instance = this.owner.factoryFor('helper:some-helper').create();
|
25577
|
+
|
25578
|
+
assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');
|
25579
|
+
assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');
|
25580
|
+
};
|
25581
|
+
|
25556
25582
|
return _class;
|
25557
25583
|
}(_testCase.RenderingTest));
|
25558
25584
|
|
@@ -61475,6 +61501,19 @@ enifed('ember-runtime/tests/system/object/computed_test', ['ember-metal', 'inter
|
|
61475
61501
|
|
61476
61502
|
ok((0, _emberMetal.get)(SubClass.create(), 'foo'), 'FOO', 'super value is fetched');
|
61477
61503
|
});
|
61504
|
+
|
61505
|
+
QUnit.test('observing computed.reads prop and overriding it in create() works', function () {
|
61506
|
+
var Obj = _object.default.extend({
|
61507
|
+
name: _emberMetal.computed.reads('model.name'),
|
61508
|
+
nameDidChange: (0, _emberMetal.observer)('name', function () {})
|
61509
|
+
});
|
61510
|
+
|
61511
|
+
var obj1 = Obj.create({ name: '1' });
|
61512
|
+
var obj2 = Obj.create({ name: '2' });
|
61513
|
+
|
61514
|
+
equal(obj1.get('name'), '1');
|
61515
|
+
equal(obj2.get('name'), '2');
|
61516
|
+
});
|
61478
61517
|
});
|
61479
61518
|
QUnit.module('ESLint | ember-runtime/tests/system/object/computed_test.js');
|
61480
61519
|
QUnit.test('should pass ESLint', function(assert) {
|
data/dist/ember-tests.prod.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.17.0-beta.
|
9
|
+
* @version 2.17.0-beta.6
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -2294,7 +2294,7 @@ enifed('ember-application/tests/system/dependency_injection/default_resolver_tes
|
|
2294
2294
|
|
2295
2295
|
var lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;
|
2296
2296
|
|
2297
|
-
assert.ok(lookedUpShorthandHelper.
|
2297
|
+
assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');
|
2298
2298
|
|
2299
2299
|
var lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;
|
2300
2300
|
|
@@ -2311,7 +2311,7 @@ enifed('ember-application/tests/system/dependency_injection/default_resolver_tes
|
|
2311
2311
|
|
2312
2312
|
var lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;
|
2313
2313
|
|
2314
|
-
assert.ok(lookedUpShorthandHelper.
|
2314
|
+
assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');
|
2315
2315
|
|
2316
2316
|
var lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;
|
2317
2317
|
|
@@ -23963,6 +23963,32 @@ enifed('ember-glimmer/tests/integration/helpers/custom-helper-test', ['ember-bab
|
|
23963
23963
|
equal(destroyCount, 1, 'destroy is called after a view is destroyed');
|
23964
23964
|
};
|
23965
23965
|
|
23966
|
+
_class.prototype['@test simple helper can be invoked manually via `owner.factoryFor(...).create().compute()'] = function (assert) {
|
23967
|
+
this.registerHelper('some-helper', function () {
|
23968
|
+
assert.ok(true, 'some-helper helper invoked');
|
23969
|
+
return 'lolol';
|
23970
|
+
});
|
23971
|
+
|
23972
|
+
var instance = this.owner.factoryFor('helper:some-helper').create();
|
23973
|
+
|
23974
|
+
assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');
|
23975
|
+
assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');
|
23976
|
+
};
|
23977
|
+
|
23978
|
+
_class.prototype['@test class-based helper can be invoked manually via `owner.factoryFor(...).create().compute()'] = function () {
|
23979
|
+
this.registerHelper('some-helper', {
|
23980
|
+
compute: function () {
|
23981
|
+
assert.ok(true, 'some-helper helper invoked');
|
23982
|
+
return 'lolol';
|
23983
|
+
}
|
23984
|
+
});
|
23985
|
+
|
23986
|
+
var instance = this.owner.factoryFor('helper:some-helper').create();
|
23987
|
+
|
23988
|
+
assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');
|
23989
|
+
assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');
|
23990
|
+
};
|
23991
|
+
|
23966
23992
|
return _class;
|
23967
23993
|
}(_testCase.RenderingTest));
|
23968
23994
|
|
@@ -57464,6 +57490,19 @@ enifed('ember-runtime/tests/system/object/computed_test', ['ember-metal', 'inter
|
|
57464
57490
|
|
57465
57491
|
ok((0, _emberMetal.get)(SubClass.create(), 'foo'), 'FOO', 'super value is fetched');
|
57466
57492
|
});
|
57493
|
+
|
57494
|
+
QUnit.test('observing computed.reads prop and overriding it in create() works', function () {
|
57495
|
+
var Obj = _object.default.extend({
|
57496
|
+
name: _emberMetal.computed.reads('model.name'),
|
57497
|
+
nameDidChange: (0, _emberMetal.observer)('name', function () {})
|
57498
|
+
});
|
57499
|
+
|
57500
|
+
var obj1 = Obj.create({ name: '1' });
|
57501
|
+
var obj2 = Obj.create({ name: '2' });
|
57502
|
+
|
57503
|
+
equal(obj1.get('name'), '1');
|
57504
|
+
equal(obj2.get('name'), '2');
|
57505
|
+
});
|
57467
57506
|
});
|
57468
57507
|
enifed('ember-runtime/tests/system/object/create_test', ['ember-metal', 'ember-runtime/system/object'], function (_emberMetal, _object) {
|
57469
57508
|
'use strict';
|
data/dist/ember.debug.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.17.0-beta.
|
9
|
+
* @version 2.17.0-beta.6
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -17744,17 +17744,18 @@ enifed('ember-glimmer/environment', ['exports', 'ember-babel', 'ember-utils', 'e
|
|
17744
17744
|
var helperFactory = owner.factoryFor('helper:' + name, options) || owner.factoryFor('helper:' + name);
|
17745
17745
|
|
17746
17746
|
// TODO: try to unify this into a consistent protocol to avoid wasteful closure allocations
|
17747
|
-
|
17748
|
-
|
17749
|
-
|
17750
|
-
};
|
17747
|
+
var HelperReference = void 0;
|
17748
|
+
if (helperFactory.class.isSimpleHelperFactory) {
|
17749
|
+
HelperReference = _references.SimpleHelperReference;
|
17751
17750
|
} else if (helperFactory.class.isHelperFactory) {
|
17752
|
-
|
17753
|
-
return _references.ClassBasedHelperReference.create(helperFactory, vm, args.capture());
|
17754
|
-
};
|
17751
|
+
HelperReference = _references.ClassBasedHelperReference;
|
17755
17752
|
} else {
|
17756
17753
|
throw new Error(name + ' is not a helper');
|
17757
17754
|
}
|
17755
|
+
|
17756
|
+
return function (vm, args) {
|
17757
|
+
return HelperReference.create(helperFactory, vm, args.capture());
|
17758
|
+
};
|
17758
17759
|
};
|
17759
17760
|
|
17760
17761
|
Environment.prototype.hasModifier = function hasModifier(name) {
|
@@ -17875,10 +17876,10 @@ enifed('ember-glimmer/environment', ['exports', 'ember-babel', 'ember-utils', 'e
|
|
17875
17876
|
};
|
17876
17877
|
}
|
17877
17878
|
});
|
17878
|
-
enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@glimmer/reference'], function (exports, _emberUtils, _emberRuntime, _reference) {
|
17879
|
+
enifed('ember-glimmer/helper', ['exports', 'ember-babel', 'ember-utils', 'ember-runtime', '@glimmer/reference'], function (exports, _emberBabel, _emberUtils, _emberRuntime, _reference) {
|
17879
17880
|
'use strict';
|
17880
17881
|
|
17881
|
-
exports.RECOMPUTE_TAG = undefined;
|
17882
|
+
exports.SimpleHelper = exports.RECOMPUTE_TAG = undefined;
|
17882
17883
|
exports.helper = helper;
|
17883
17884
|
var RECOMPUTE_TAG = exports.RECOMPUTE_TAG = (0, _emberUtils.symbol)('RECOMPUTE_TAG');
|
17884
17885
|
|
@@ -17954,6 +17955,23 @@ enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@gli
|
|
17954
17955
|
isHelperFactory: true
|
17955
17956
|
});
|
17956
17957
|
|
17958
|
+
var SimpleHelper = exports.SimpleHelper = function () {
|
17959
|
+
function SimpleHelper(compute) {
|
17960
|
+
(0, _emberBabel.classCallCheck)(this, SimpleHelper);
|
17961
|
+
|
17962
|
+
this.isHelperFactory = true;
|
17963
|
+
this.isHelperInstance = true;
|
17964
|
+
this.isSimpleHelperFactory = true;
|
17965
|
+
this.compute = compute;
|
17966
|
+
}
|
17967
|
+
|
17968
|
+
SimpleHelper.prototype.create = function create() {
|
17969
|
+
return this;
|
17970
|
+
};
|
17971
|
+
|
17972
|
+
return SimpleHelper;
|
17973
|
+
}();
|
17974
|
+
|
17957
17975
|
/**
|
17958
17976
|
In many cases, the ceremony of a full `Helper` class is not required.
|
17959
17977
|
The `helper` method create pure-function helpers without instances. For
|
@@ -17977,10 +17995,7 @@ enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@gli
|
|
17977
17995
|
@since 1.13.0
|
17978
17996
|
*/
|
17979
17997
|
function helper(helperFn) {
|
17980
|
-
return
|
17981
|
-
isHelperInstance: true,
|
17982
|
-
compute: helperFn
|
17983
|
-
};
|
17998
|
+
return new SimpleHelper(helperFn);
|
17984
17999
|
}
|
17985
18000
|
|
17986
18001
|
exports.default = Helper;
|
@@ -22165,7 +22180,9 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-babel', 'ember-utils
|
|
22165
22180
|
var SimpleHelperReference = exports.SimpleHelperReference = function (_CachedReference2) {
|
22166
22181
|
(0, _emberBabel.inherits)(SimpleHelperReference, _CachedReference2);
|
22167
22182
|
|
22168
|
-
SimpleHelperReference.create = function create(
|
22183
|
+
SimpleHelperReference.create = function create(Helper, _vm, args) {
|
22184
|
+
var helper = Helper.create();
|
22185
|
+
|
22169
22186
|
if ((0, _reference.isConst)(args)) {
|
22170
22187
|
var positional = args.positional,
|
22171
22188
|
named = args.named;
|
@@ -22179,7 +22196,7 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-babel', 'ember-utils
|
|
22179
22196
|
maybeFreeze(namedValue);
|
22180
22197
|
}
|
22181
22198
|
|
22182
|
-
var result = helper(positionalValue, namedValue);
|
22199
|
+
var result = helper.compute(positionalValue, namedValue);
|
22183
22200
|
|
22184
22201
|
if (typeof result === 'object' && result !== null || typeof result === 'function') {
|
22185
22202
|
return new RootReference(result);
|
@@ -22187,7 +22204,7 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-babel', 'ember-utils
|
|
22187
22204
|
return _runtime.PrimitiveReference.create(result);
|
22188
22205
|
}
|
22189
22206
|
} else {
|
22190
|
-
return new SimpleHelperReference(helper, args);
|
22207
|
+
return new SimpleHelperReference(helper.compute, args);
|
22191
22208
|
}
|
22192
22209
|
};
|
22193
22210
|
|
@@ -24567,8 +24584,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24567
24584
|
if (paths === undefined) {
|
24568
24585
|
return;
|
24569
24586
|
}
|
24587
|
+
|
24570
24588
|
if (paths[path] > 0) {
|
24571
24589
|
paths[path]--;
|
24590
|
+
} else {
|
24591
|
+
return;
|
24572
24592
|
}
|
24573
24593
|
|
24574
24594
|
var key = firstKey(path);
|
@@ -41727,12 +41747,14 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
41727
41747
|
});
|
41728
41748
|
|
41729
41749
|
exports.NativeArray = NativeArray = (_NativeArray = NativeArray).without.apply(_NativeArray, ignore);
|
41730
|
-
|
41731
41750
|
/**
|
41732
|
-
|
41733
|
-
|
41751
|
+
@module @ember/array
|
41752
|
+
*/
|
41753
|
+
/**
|
41754
|
+
Creates an `Ember.NativeArray` from an Array-like object.
|
41755
|
+
Does not modify the original object's contents. `A()` is not needed if
|
41734
41756
|
`EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,
|
41735
|
-
it is recommended that you use
|
41757
|
+
it is recommended that you use `A()` when creating addons for
|
41736
41758
|
ember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`
|
41737
41759
|
will be `true`.
|
41738
41760
|
|
@@ -41740,6 +41762,7 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
41740
41762
|
|
41741
41763
|
```app/components/my-component.js
|
41742
41764
|
import Component from '@ember/component';
|
41765
|
+
import { A } from '@ember/array';
|
41743
41766
|
|
41744
41767
|
export default Component.extend({
|
41745
41768
|
tagName: 'ul',
|
@@ -41749,7 +41772,8 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
41749
41772
|
this._super(...arguments);
|
41750
41773
|
|
41751
41774
|
if (!this.get('content')) {
|
41752
|
-
this.set('content',
|
41775
|
+
this.set('content', A());
|
41776
|
+
this.set('otherContent', A([1,2,3]));
|
41753
41777
|
}
|
41754
41778
|
}
|
41755
41779
|
});
|
@@ -41758,7 +41782,7 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
41758
41782
|
@method A
|
41759
41783
|
@static
|
41760
41784
|
@for @ember/array
|
41761
|
-
@return {
|
41785
|
+
@return {Ember.NativeArray}
|
41762
41786
|
@public
|
41763
41787
|
*/
|
41764
41788
|
var A = void 0;
|
@@ -48485,7 +48509,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
48485
48509
|
enifed("ember/version", ["exports"], function (exports) {
|
48486
48510
|
"use strict";
|
48487
48511
|
|
48488
|
-
exports.default = "2.17.0-beta.
|
48512
|
+
exports.default = "2.17.0-beta.6";
|
48489
48513
|
});
|
48490
48514
|
enifed("handlebars", ["exports"], function (exports) {
|
48491
48515
|
"use strict";
|
data/dist/ember.min.js
CHANGED
@@ -1215,10 +1215,10 @@ throw new Error(e+" is not a partial")},i.prototype.hasHelper=function(e,t){var
|
|
1215
1215
|
return!("component"!==e&&!this.builtInHelpers[e])||(n.hasRegistration("helper:"+e,{source:"template:"+r})||n.hasRegistration("helper:"+e))},i.prototype.lookupHelper=function(e,t){if("component"===e)return function(e,n){return(0,d["default"])(e,n,t)}
|
1216
1216
|
var n=t.owner,r=t.moduleName,i=this.builtInHelpers[e]
|
1217
1217
|
if(i)return i
|
1218
|
-
var o=n.factoryFor("helper:"+e,r&&{source:"template:"+r}||{})||n.factoryFor("helper:"+e)
|
1219
|
-
if(o["class"].
|
1220
|
-
if(o["class"].isHelperFactory)
|
1221
|
-
|
1218
|
+
var o=n.factoryFor("helper:"+e,r&&{source:"template:"+r}||{})||n.factoryFor("helper:"+e),s=void 0
|
1219
|
+
if(o["class"].isSimpleHelperFactory)s=l.SimpleHelperReference
|
1220
|
+
else{if(!o["class"].isHelperFactory)throw new Error(e+" is not a helper")
|
1221
|
+
s=l.ClassBasedHelperReference}return function(e,t){return s.create(o,e,t.capture())}},i.prototype.hasModifier=function(e){return!!this.builtInModifiers[e]},i.prototype.lookupModifier=function(e){var t=this.builtInModifiers[e]
|
1222
1222
|
if(t)return t
|
1223
1223
|
throw new Error(e+" is not a modifier")},i.prototype.toConditionalReference=function(e){return l.ConditionalReference.create(e)},i.prototype.iterableFor=function(e,t){return(0,c["default"])(e,t)},i.prototype.scheduleInstallModifier=function(){var t
|
1224
1224
|
this.isInteractive&&(t=e.prototype.scheduleInstallModifier).call.apply(t,[this].concat(Array.prototype.slice.call(arguments)))},i.prototype.scheduleUpdateModifier=function(){var t
|
@@ -1226,9 +1226,11 @@ this.isInteractive&&(t=e.prototype.scheduleUpdateModifier).call.apply(t,[this].c
|
|
1226
1226
|
for(this.destroyedComponents=[],t=0;t<n.length;t++)n[t].destroy()
|
1227
1227
|
e.prototype.commit.call(this),this.inTransaction=!1},i}(s.Environment)
|
1228
1228
|
e["default"]=j}),e("ember-glimmer/helper",["exports","ember-utils","ember-runtime","@glimmer/reference"],function(e,t,n,r){"use strict"
|
1229
|
-
e.RECOMPUTE_TAG=void 0,e.helper=function(e){return
|
1229
|
+
e.SimpleHelper=e.RECOMPUTE_TAG=void 0,e.helper=function(e){return new s(e)}
|
1230
1230
|
var i=e.RECOMPUTE_TAG=(0,t.symbol)("RECOMPUTE_TAG"),o=n.FrameworkObject.extend({isHelperInstance:!0,init:function(){this._super.apply(this,arguments),this[i]=new r.DirtyableTag},recompute:function(){this[i].dirty()}})
|
1231
|
-
o.reopenClass({isHelperFactory:!0})
|
1231
|
+
o.reopenClass({isHelperFactory:!0})
|
1232
|
+
var s=e.SimpleHelper=function(){function e(e){this.isHelperFactory=!0,this.isHelperInstance=!0,this.isSimpleHelperFactory=!0,this.compute=e}return e.prototype.create=function(){return this},e}()
|
1233
|
+
e["default"]=o}),e("ember-glimmer/helpers/-class",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,n){"use strict"
|
1232
1234
|
function r(e){var t=e.positional,r=t.at(0),i=t.length,o=r.value()
|
1233
1235
|
return o===!0?i>1?n.String.dasherize(t.at(1).value()):null:o===!1?i>2?n.String.dasherize(t.at(2).value()):null:o}e["default"]=function(e,n){return new t.InternalHelperReference(r,n.capture())}}),e("ember-glimmer/helpers/-html-safe",["exports","ember-glimmer/utils/references","ember-glimmer/utils/string"],function(e,t,n){"use strict"
|
1234
1236
|
function r(e){var t=e.positional,r=t.at(0)
|
@@ -1484,8 +1486,8 @@ e!==t&&(this.tag.dirty(),this._value=e)},n}(c)
|
|
1484
1486
|
e.UpdatablePrimitiveReference=function(e){function n(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(n,e),n.prototype.get=function(){return o.UNDEFINED_REFERENCE},n}(m),e.ConditionalReference=function(e){function n(n){var r=(0,t.possibleConstructorReturn)(this,e.call(this,n))
|
1485
1487
|
return r.objectTag=new i.UpdatableTag(i.CONSTANT_TAG),r.tag=(0,i.combine)([n.tag,r.objectTag]),r}return(0,t.inherits)(n,e),n.create=function(e){var t
|
1486
1488
|
return(0,i.isConst)(e)?(t=e.value(),(0,r.isProxy)(t)?new f(t,"isTruthy"):o.PrimitiveReference.create((0,s["default"])(t))):new n(e)},n.prototype.toBool=function(e){return(0,r.isProxy)(e)?(this.objectTag.update((0,r.tagForProperty)(e,"isTruthy")),(0,r.get)(e,"isTruthy")):(this.objectTag.update((0,r.tagFor)(e)),(0,s["default"])(e))},n}(o.ConditionalReference),e.SimpleHelperReference=function(e){function n(n,r){var i=(0,t.possibleConstructorReturn)(this,e.call(this))
|
1487
|
-
return i.tag=r.tag,i.helper=n,i.args=r,i}return(0,t.inherits)(n,e),n.create=function(e,t){var
|
1488
|
-
return(0,i.isConst)(
|
1489
|
+
return i.tag=r.tag,i.helper=n,i.args=r,i}return(0,t.inherits)(n,e),n.create=function(e,t,r){var s,a,u,c,l,h=e.create()
|
1490
|
+
return(0,i.isConst)(r)?(s=r.positional,a=r.named,u=s.value(),c=a.value(),l=h.compute(u,c),"object"==typeof l&&null!==l||"function"==typeof l?new p(l):o.PrimitiveReference.create(l)):new n(h.compute,r)},n.prototype.compute=function(){var e=this.helper,t=this.args,n=t.positional,r=t.named,i=n.value(),o=r.value()
|
1489
1491
|
return e(i,o)},n}(l),e.ClassBasedHelperReference=function(e){function n(n,r){var o=(0,t.possibleConstructorReturn)(this,e.call(this))
|
1490
1492
|
return o.tag=(0,i.combine)([n[a.RECOMPUTE_TAG],r.tag]),o.instance=n,o.args=r,o}return(0,t.inherits)(n,e),n.create=function(e,t,r){var i=e.create()
|
1491
1493
|
return t.newDestroyable(i),new n(i,r)},n.prototype.compute=function(){var e=this.instance,t=this.args,n=t.positional,r=t.named,i=n.value(),o=r.value()
|
@@ -1676,7 +1678,7 @@ for(n in i)i[n]>0&&r.add(n)}return r},e.prototype.add=function(e){var t=this._pa
|
|
1676
1678
|
t[e]=(t[e]||0)+1
|
1677
1679
|
var n=q(e),r=e.slice(n.length+1)
|
1678
1680
|
this.chain(n,r)},e.prototype.remove=function(e){var t=this._paths
|
1679
|
-
if(void 0!==t
|
1681
|
+
if(void 0!==t&&t[e]>0){t[e]--
|
1680
1682
|
var n=q(e),r=e.slice(n.length+1)
|
1681
1683
|
this.unchain(n,r)}},e.prototype.chain=function(t,n){var r=this._chains,i=void 0
|
1682
1684
|
void 0===r?r=this._chains=Object.create(null):i=r[t],void 0===i&&(i=r[t]=new e(this,t,(void 0))),i.count++,n&&(t=q(n),n=n.slice(t.length+1),i.chain(t,n))},e.prototype.unchain=function(e,t){var n,r,i=this._chains,o=i[e]
|
@@ -2593,7 +2595,7 @@ var b,_=s.computed
|
|
2593
2595
|
_.alias=s.alias,s["default"].computed=_,s["default"].ComputedProperty=s.ComputedProperty,s["default"].cacheFor=s.cacheFor,s["default"].assert=u.assert,s["default"].warn=u.warn,s["default"].debug=u.debug,s["default"].deprecate=u.deprecate,s["default"].deprecateFunc=u.deprecateFunc,s["default"].runInDebug=u.runInDebug,s["default"].Debug={registerDeprecationHandler:u.registerDeprecationHandler,registerWarnHandler:u.registerWarnHandler},s["default"].merge=s.merge,s["default"].instrument=s.instrument,s["default"].subscribe=s.instrumentationSubscribe,s["default"].Instrumentation={instrument:s.instrument,subscribe:s.instrumentationSubscribe,unsubscribe:s.instrumentationUnsubscribe,reset:s.instrumentationReset},s["default"].Error=u.Error,s["default"].META_DESC=s.META_DESC,s["default"].meta=s.meta,s["default"].get=s.get,s["default"].getWithDefault=s.getWithDefault,s["default"]._getPath=s._getPath,s["default"].set=s.set,s["default"].trySet=s.trySet,s["default"].FEATURES=a.FEATURES,s["default"].FEATURES.isEnabled=u.isFeatureEnabled,s["default"]._Cache=s.Cache,s["default"].on=s.on,s["default"].addListener=s.addListener,s["default"].removeListener=s.removeListener,s["default"]._suspendListener=s.suspendListener,s["default"]._suspendListeners=s.suspendListeners,s["default"].sendEvent=s.sendEvent,s["default"].hasListeners=s.hasListeners,s["default"].watchedEvents=s.watchedEvents,s["default"].listenersFor=s.listenersFor,s["default"].isNone=s.isNone,s["default"].isEmpty=s.isEmpty,s["default"].isBlank=s.isBlank,s["default"].isPresent=s.isPresent,s["default"].run=s.run,s["default"]._ObserverSet=s.ObserverSet,s["default"].propertyWillChange=s.propertyWillChange,s["default"].propertyDidChange=s.propertyDidChange,s["default"].overrideChains=s.overrideChains,s["default"].beginPropertyChanges=s.beginPropertyChanges,s["default"].endPropertyChanges=s.endPropertyChanges,s["default"].changeProperties=s.changeProperties,s["default"].platform={defineProperty:!0,hasPropertyAccessors:!0},s["default"].defineProperty=s.defineProperty,s["default"].watchKey=s.watchKey,s["default"].unwatchKey=s.unwatchKey,s["default"].removeChainWatcher=s.removeChainWatcher,s["default"]._ChainNode=s.ChainNode,s["default"].finishChains=s.finishChains,s["default"].watchPath=s.watchPath,s["default"].unwatchPath=s.unwatchPath,s["default"].watch=s.watch,s["default"].isWatching=s.isWatching,s["default"].unwatch=s.unwatch,s["default"].destroy=s.deleteMeta,s["default"].libraries=s.libraries,s["default"].OrderedSet=s.OrderedSet,s["default"].Map=s.Map,s["default"].MapWithDefault=s.MapWithDefault,s["default"].getProperties=s.getProperties,s["default"].setProperties=s.setProperties,s["default"].expandProperties=s.expandProperties,s["default"].NAME_KEY=i.NAME_KEY,s["default"].addObserver=s.addObserver,s["default"].observersFor=s.observersFor,s["default"].removeObserver=s.removeObserver,s["default"]._suspendObserver=s._suspendObserver,s["default"]._suspendObservers=s._suspendObservers,s["default"].required=s.required,s["default"].aliasMethod=s.aliasMethod,s["default"].observer=s.observer,s["default"].immediateObserver=s._immediateObserver,s["default"].mixin=s.mixin,s["default"].Mixin=s.Mixin,s["default"].bind=s.bind,s["default"].Binding=s.Binding,s["default"].isGlobalPath=s.isGlobalPath,Object.defineProperty(s["default"],"ENV",{get:function(){return n.ENV},enumerable:!1}),Object.defineProperty(s["default"],"lookup",{get:function(){return n.context.lookup},set:function(e){n.context.lookup=e},enumerable:!1}),s["default"].EXTEND_PROTOTYPES=n.ENV.EXTEND_PROTOTYPES,Object.defineProperty(s["default"],"LOG_STACKTRACE_ON_DEPRECATION",{get:function(){return n.ENV.LOG_STACKTRACE_ON_DEPRECATION},set:function(e){n.ENV.LOG_STACKTRACE_ON_DEPRECATION=!!e},enumerable:!1}),Object.defineProperty(s["default"],"LOG_VERSION",{get:function(){return n.ENV.LOG_VERSION},set:function(e){n.ENV.LOG_VERSION=!!e},enumerable:!1}),Object.defineProperty(s["default"],"LOG_BINDINGS",{get:function(){return n.ENV.LOG_BINDINGS},set:function(e){n.ENV.LOG_BINDINGS=!!e},enumerable:!1}),Object.defineProperty(s["default"],"onerror",{get:s.getOnerror,set:s.setOnerror,enumerable:!1}),Object.defineProperty(s["default"],"K",{get:function(){return v}}),Object.defineProperty(s["default"],"testing",{get:u.isTesting,set:u.setTesting,enumerable:!1}),s["default"]._Backburner=c["default"],s["default"].Logger=l["default"],s["default"].String=p.String,s["default"].Object=p.Object,s["default"]._RegistryProxyMixin=p.RegistryProxyMixin,s["default"]._ContainerProxyMixin=p.ContainerProxyMixin,s["default"].compare=p.compare,s["default"].copy=p.copy,s["default"].isEqual=p.isEqual,s["default"].inject=p.inject,s["default"].Array=p.Array,s["default"].Comparable=p.Comparable,s["default"].Enumerable=p.Enumerable,s["default"].ArrayProxy=p.ArrayProxy,s["default"].ObjectProxy=p.ObjectProxy,s["default"].ActionHandler=p.ActionHandler,s["default"].CoreObject=p.CoreObject,s["default"].NativeArray=p.NativeArray,s["default"].Copyable=p.Copyable,s["default"].Freezable=p.Freezable,s["default"].FROZEN_ERROR=p.FROZEN_ERROR,s["default"].MutableEnumerable=p.MutableEnumerable,s["default"].MutableArray=p.MutableArray,s["default"].TargetActionSupport=p.TargetActionSupport,s["default"].Evented=p.Evented,s["default"].PromiseProxyMixin=p.PromiseProxyMixin,s["default"].Observable=p.Observable,s["default"].typeOf=p.typeOf,s["default"].isArray=p.isArray,s["default"].Object=p.Object,s["default"].onLoad=p.onLoad,s["default"].runLoadHooks=p.runLoadHooks,s["default"].Controller=p.Controller,s["default"].ControllerMixin=p.ControllerMixin,s["default"].Service=p.Service,s["default"]._ProxyMixin=p._ProxyMixin,s["default"].RSVP=p.RSVP,s["default"].Namespace=p.Namespace,_.empty=p.empty,_.notEmpty=p.notEmpty,_.none=p.none,_.not=p.not,_.bool=p.bool,_.match=p.match,_.equal=p.equal,_.gt=p.gt,_.gte=p.gte,_.lt=p.lt,_.lte=p.lte,_.oneWay=p.oneWay,_.reads=p.oneWay,_.readOnly=p.readOnly,_.deprecatingAlias=p.deprecatingAlias,_.and=p.and,_.or=p.or,_.any=p.any,_.sum=p.sum,_.min=p.min,_.max=p.max,_.map=p.map,_.sort=p.sort,_.setDiff=p.setDiff,_.mapBy=p.mapBy,_.filter=p.filter,_.filterBy=p.filterBy,_.uniq=p.uniq,_.uniqBy=p.uniqBy,_.union=p.union,_.intersect=p.intersect,_.collect=p.collect,Object.defineProperty(s["default"],"STRINGS",{configurable:!1,get:p.getStrings,set:p.setStrings}),Object.defineProperty(s["default"],"BOOTED",{configurable:!1,enumerable:!1,get:p.isNamespaceSearchDisabled,set:p.setNamespaceSearchDisabled}),s["default"].Component=h.Component,h.Helper.helper=h.helper,s["default"].Helper=h.Helper,s["default"].Checkbox=h.Checkbox,s["default"].TextField=h.TextField,s["default"].TextArea=h.TextArea,s["default"].LinkComponent=h.LinkComponent,n.ENV.EXTEND_PROTOTYPES.String&&(String.prototype.htmlSafe=function(){return(0,h.htmlSafe)(this)})
|
2594
2596
|
var w=s["default"].Handlebars=s["default"].Handlebars||{},O=s["default"].HTMLBars=s["default"].HTMLBars||{},E=w.Utils=w.Utils||{}
|
2595
2597
|
Object.defineProperty(w,"SafeString",{get:h._getSafeString}),O.template=w.template=h.template,E.escapeExpression=h.escapeExpression,p.String.htmlSafe=h.htmlSafe,p.String.isHTMLSafe=h.isHTMLSafe,Object.defineProperty(s["default"],"TEMPLATES",{get:h.getTemplates,set:h.setTemplates,configurable:!1,enumerable:!1}),e.VERSION=f["default"],s["default"].VERSION=f["default"],s.libraries.registerCoreLibrary("Ember",f["default"]),s["default"].$=d.jQuery,s["default"].ViewTargetActionSupport=d.ViewTargetActionSupport,s["default"].ViewUtils={isSimpleClick:d.isSimpleClick,getViewElement:d.getViewElement,getViewBounds:d.getViewBounds,getViewClientRects:d.getViewClientRects,getViewBoundingClientRect:d.getViewBoundingClientRect,getRootViews:d.getRootViews,getChildViews:d.getChildViews},s["default"].TextSupport=d.TextSupport,s["default"].ComponentLookup=d.ComponentLookup,s["default"].EventDispatcher=d.EventDispatcher,s["default"].Location=m.Location,s["default"].AutoLocation=m.AutoLocation,s["default"].HashLocation=m.HashLocation,s["default"].HistoryLocation=m.HistoryLocation,s["default"].NoneLocation=m.NoneLocation,s["default"].controllerFor=m.controllerFor,s["default"].generateControllerFactory=m.generateControllerFactory,s["default"].generateController=m.generateController,s["default"].RouterDSL=m.RouterDSL,s["default"].Router=m.Router,s["default"].Route=m.Route,s["default"].Application=g.Application,s["default"].ApplicationInstance=g.ApplicationInstance,s["default"].Engine=g.Engine,s["default"].EngineInstance=g.EngineInstance,s["default"].DefaultResolver=s["default"].Resolver=g.Resolver,(0,p.runLoadHooks)("Ember.Application",g.Application),s["default"].DataAdapter=y.DataAdapter,s["default"].ContainerDebugAdapter=y.ContainerDebugAdapter,(0,t.has)("ember-template-compiler")&&(0,t["default"])("ember-template-compiler"),(0,t.has)("ember-testing")&&(b=(0,t["default"])("ember-testing"),s["default"].Test=b.Test,s["default"].Test.Adapter=b.Adapter,s["default"].Test.QUnitAdapter=b.QUnitAdapter,s["default"].setupForTesting=b.setupForTesting),(0,p.runLoadHooks)("Ember"),e["default"]=s["default"],r.IS_NODE?r.module.exports=s["default"]:n.context.exports.Ember=n.context.exports.Em=s["default"]}),e("ember/version",["exports"],function(e){"use strict"
|
2596
|
-
e["default"]="2.17.0-beta.
|
2598
|
+
e["default"]="2.17.0-beta.6"}),e("node-module",["exports"],function(e){var t="object"==typeof module&&"function"==typeof module.require
|
2597
2599
|
t?(e.require=module.require,e.module=module,e.IS_NODE=t):(e.require=null,e.module=null,e.IS_NODE=t)}),e("route-recognizer",["exports"],function(e){"use strict"
|
2598
2600
|
function t(){var e=g(null)
|
2599
2601
|
return e.__=void 0,delete e.__,e}function n(e,t,r){return function(i,o){var s=e+i
|
data/dist/ember.prod.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.17.0-beta.
|
9
|
+
* @version 2.17.0-beta.6
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -17309,17 +17309,18 @@ enifed('ember-glimmer/environment', ['exports', 'ember-babel', 'ember-utils', 'e
|
|
17309
17309
|
var helperFactory = owner.factoryFor('helper:' + name, moduleName && { source: 'template:' + moduleName } || {}) || owner.factoryFor('helper:' + name);
|
17310
17310
|
|
17311
17311
|
// TODO: try to unify this into a consistent protocol to avoid wasteful closure allocations
|
17312
|
-
|
17313
|
-
|
17314
|
-
|
17315
|
-
};
|
17312
|
+
var HelperReference = void 0;
|
17313
|
+
if (helperFactory.class.isSimpleHelperFactory) {
|
17314
|
+
HelperReference = _references.SimpleHelperReference;
|
17316
17315
|
} else if (helperFactory.class.isHelperFactory) {
|
17317
|
-
|
17318
|
-
return _references.ClassBasedHelperReference.create(helperFactory, vm, args.capture());
|
17319
|
-
};
|
17316
|
+
HelperReference = _references.ClassBasedHelperReference;
|
17320
17317
|
} else {
|
17321
17318
|
throw new Error(name + ' is not a helper');
|
17322
17319
|
}
|
17320
|
+
|
17321
|
+
return function (vm, args) {
|
17322
|
+
return HelperReference.create(helperFactory, vm, args.capture());
|
17323
|
+
};
|
17323
17324
|
};
|
17324
17325
|
|
17325
17326
|
Environment.prototype.hasModifier = function (name) {
|
@@ -17396,7 +17397,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-babel', 'ember-utils', 'e
|
|
17396
17397
|
enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@glimmer/reference'], function (exports, _emberUtils, _emberRuntime, _reference) {
|
17397
17398
|
'use strict';
|
17398
17399
|
|
17399
|
-
exports.RECOMPUTE_TAG = undefined;
|
17400
|
+
exports.SimpleHelper = exports.RECOMPUTE_TAG = undefined;
|
17400
17401
|
exports.helper =
|
17401
17402
|
|
17402
17403
|
/**
|
@@ -17422,10 +17423,7 @@ enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@gli
|
|
17422
17423
|
@since 1.13.0
|
17423
17424
|
*/
|
17424
17425
|
function (helperFn) {
|
17425
|
-
return
|
17426
|
-
isHelperInstance: true,
|
17427
|
-
compute: helperFn
|
17428
|
-
};
|
17426
|
+
return new SimpleHelper(helperFn);
|
17429
17427
|
};
|
17430
17428
|
var RECOMPUTE_TAG = exports.RECOMPUTE_TAG = (0, _emberUtils.symbol)('RECOMPUTE_TAG');
|
17431
17429
|
|
@@ -17500,6 +17498,22 @@ enifed('ember-glimmer/helper', ['exports', 'ember-utils', 'ember-runtime', '@gli
|
|
17500
17498
|
isHelperFactory: true
|
17501
17499
|
});
|
17502
17500
|
|
17501
|
+
var SimpleHelper = exports.SimpleHelper = function () {
|
17502
|
+
function SimpleHelper(compute) {
|
17503
|
+
|
17504
|
+
this.isHelperFactory = true;
|
17505
|
+
this.isHelperInstance = true;
|
17506
|
+
this.isSimpleHelperFactory = true;
|
17507
|
+
this.compute = compute;
|
17508
|
+
}
|
17509
|
+
|
17510
|
+
SimpleHelper.prototype.create = function () {
|
17511
|
+
return this;
|
17512
|
+
};
|
17513
|
+
|
17514
|
+
return SimpleHelper;
|
17515
|
+
}();
|
17516
|
+
|
17503
17517
|
exports.default = Helper;
|
17504
17518
|
});
|
17505
17519
|
enifed('ember-glimmer/helpers/-class', ['exports', 'ember-glimmer/utils/references', 'ember-runtime'], function (exports, _references, _emberRuntime) {
|
@@ -21477,14 +21491,19 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-babel', 'ember-utils
|
|
21477
21491
|
exports.SimpleHelperReference = function (_CachedReference2) {
|
21478
21492
|
(0, _emberBabel.inherits)(SimpleHelperReference, _CachedReference2);
|
21479
21493
|
|
21480
|
-
SimpleHelperReference.create = function (
|
21481
|
-
var
|
21494
|
+
SimpleHelperReference.create = function (Helper, _vm, args) {
|
21495
|
+
var helper = Helper.create(),
|
21496
|
+
positional,
|
21497
|
+
named,
|
21498
|
+
positionalValue,
|
21499
|
+
namedValue,
|
21500
|
+
result;
|
21482
21501
|
|
21483
21502
|
if ((0, _reference.isConst)(args)) {
|
21484
21503
|
positional = args.positional, named = args.named;
|
21485
21504
|
positionalValue = positional.value();
|
21486
21505
|
namedValue = named.value();
|
21487
|
-
result = helper(positionalValue, namedValue);
|
21506
|
+
result = helper.compute(positionalValue, namedValue);
|
21488
21507
|
|
21489
21508
|
|
21490
21509
|
if (typeof result === 'object' && result !== null || typeof result === 'function') {
|
@@ -21493,7 +21512,7 @@ enifed('ember-glimmer/utils/references', ['exports', 'ember-babel', 'ember-utils
|
|
21493
21512
|
return _runtime.PrimitiveReference.create(result);
|
21494
21513
|
}
|
21495
21514
|
} else {
|
21496
|
-
return new SimpleHelperReference(helper, args);
|
21515
|
+
return new SimpleHelperReference(helper.compute, args);
|
21497
21516
|
}
|
21498
21517
|
};
|
21499
21518
|
|
@@ -23490,8 +23509,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23490
23509
|
if (paths === undefined) {
|
23491
23510
|
return;
|
23492
23511
|
}
|
23512
|
+
|
23493
23513
|
if (paths[path] > 0) {
|
23494
23514
|
paths[path]--;
|
23515
|
+
} else {
|
23516
|
+
return;
|
23495
23517
|
}
|
23496
23518
|
|
23497
23519
|
var key = firstKey(path);
|
@@ -40771,12 +40793,14 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
40771
40793
|
});
|
40772
40794
|
|
40773
40795
|
exports.NativeArray = NativeArray = (_NativeArray = NativeArray).without.apply(_NativeArray, ignore);
|
40774
|
-
|
40775
40796
|
/**
|
40776
|
-
|
40777
|
-
|
40797
|
+
@module @ember/array
|
40798
|
+
*/
|
40799
|
+
/**
|
40800
|
+
Creates an `Ember.NativeArray` from an Array-like object.
|
40801
|
+
Does not modify the original object's contents. `A()` is not needed if
|
40778
40802
|
`EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,
|
40779
|
-
it is recommended that you use
|
40803
|
+
it is recommended that you use `A()` when creating addons for
|
40780
40804
|
ember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`
|
40781
40805
|
will be `true`.
|
40782
40806
|
|
@@ -40784,6 +40808,7 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
40784
40808
|
|
40785
40809
|
```app/components/my-component.js
|
40786
40810
|
import Component from '@ember/component';
|
40811
|
+
import { A } from '@ember/array';
|
40787
40812
|
|
40788
40813
|
export default Component.extend({
|
40789
40814
|
tagName: 'ul',
|
@@ -40793,7 +40818,8 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
40793
40818
|
this._super(...arguments);
|
40794
40819
|
|
40795
40820
|
if (!this.get('content')) {
|
40796
|
-
this.set('content',
|
40821
|
+
this.set('content', A());
|
40822
|
+
this.set('otherContent', A([1,2,3]));
|
40797
40823
|
}
|
40798
40824
|
}
|
40799
40825
|
});
|
@@ -40802,7 +40828,7 @@ enifed('ember-runtime/system/native_array', ['exports', 'ember-metal', 'ember-en
|
|
40802
40828
|
@method A
|
40803
40829
|
@static
|
40804
40830
|
@for @ember/array
|
40805
|
-
@return {
|
40831
|
+
@return {Ember.NativeArray}
|
40806
40832
|
@public
|
40807
40833
|
*/
|
40808
40834
|
var A = void 0;
|
@@ -44482,7 +44508,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
44482
44508
|
enifed("ember/version", ["exports"], function (exports) {
|
44483
44509
|
"use strict";
|
44484
44510
|
|
44485
|
-
exports.default = "2.17.0-beta.
|
44511
|
+
exports.default = "2.17.0-beta.6";
|
44486
44512
|
});
|
44487
44513
|
enifed('node-module', ['exports'], function(_exports) {
|
44488
44514
|
var IS_NODE = typeof module === 'object' && typeof module.require === 'function';
|
data/package.json
CHANGED
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.17.0.beta.
|
4
|
+
version: 2.17.0.beta.6
|
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-11-
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ember.js source code wrapper for use with Ruby libs.
|
14
14
|
email:
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: 1.3.1
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
|
-
rubygems_version: 2.7.
|
51
|
+
rubygems_version: 2.7.2
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: Ember.js source code wrapper.
|