ember-source 2.18.0 → 2.18.1
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 +1 -1
- data/dist/ember-template-compiler.js +110 -47
- data/dist/ember-testing.js +1 -1
- data/dist/ember-tests.js +104 -1
- data/dist/ember-tests.prod.js +134 -16
- data/dist/ember.debug.js +102 -43
- data/dist/ember.min.js +18 -20
- data/dist/ember.prod.js +65 -28
- data/package.json +11 -6
- 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: 17db0f409cf8ff32d29c3550a0c27f2de1d24d09605080975d7e25f079fff523
|
4
|
+
data.tar.gz: 5743135f24f23899620a3b88ae37fb89980792e7485c534c326b3499775b13eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f30b1396f99c936393906a54cf03d6aa66f45b18378bcbae774817e61aedbc78c3d677a44e57697781269e4d5a5a02bd4b2b9eb59fa5902c5242bef3fa86965e
|
7
|
+
data.tar.gz: 3f0b4ea9eb168ffe9b8117ecbf989da28cf195ff128664d02156f3d2ecfb97fbdb17c82fb9cdd3ca0957f36c49de2007170d56140d0b4659b5bb30ce2529fc8b
|
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.18.
|
9
|
+
* @version 2.18.1
|
10
10
|
*/
|
11
11
|
|
12
12
|
/*global process */
|
@@ -5230,28 +5230,45 @@ enifed('backburner', ['exports'], function (exports) {
|
|
5230
5230
|
return this._setTimeout(fn, executeAt);
|
5231
5231
|
};
|
5232
5232
|
|
5233
|
-
Backburner.prototype.throttle = function (
|
5233
|
+
Backburner.prototype.throttle = function (targetOrThisArgOrMethod) {
|
5234
5234
|
var _this2 = this,
|
5235
5235
|
_len4,
|
5236
5236
|
args,
|
5237
5237
|
_key4;
|
5238
5238
|
|
5239
|
-
|
5240
|
-
|
5241
|
-
|
5242
|
-
|
5243
|
-
var immediate = args.pop();
|
5239
|
+
var target = void 0;
|
5240
|
+
var method = void 0;
|
5241
|
+
var immediate = void 0;
|
5244
5242
|
var isImmediate = void 0;
|
5245
5243
|
var wait = void 0;
|
5246
|
-
|
5247
|
-
|
5244
|
+
|
5245
|
+
for (_len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
5246
|
+
args[_key4 - 1] = arguments[_key4];
|
5247
|
+
}
|
5248
|
+
|
5249
|
+
if (args.length === 1) {
|
5250
|
+
method = targetOrThisArgOrMethod;
|
5251
|
+
wait = args.pop();
|
5252
|
+
target = null;
|
5248
5253
|
isImmediate = true;
|
5249
5254
|
} else {
|
5250
|
-
|
5251
|
-
|
5252
|
-
|
5253
|
-
|
5254
|
-
|
5255
|
+
target = targetOrThisArgOrMethod;
|
5256
|
+
method = args.shift();
|
5257
|
+
immediate = args.pop();
|
5258
|
+
if (isString(method)) {
|
5259
|
+
method = target[method];
|
5260
|
+
} else if (!isFunction(method)) {
|
5261
|
+
args.unshift(method);
|
5262
|
+
method = target;
|
5263
|
+
target = null;
|
5264
|
+
}
|
5265
|
+
if (isCoercableNumber(immediate)) {
|
5266
|
+
wait = immediate;
|
5267
|
+
isImmediate = true;
|
5268
|
+
} else {
|
5269
|
+
wait = args.pop();
|
5270
|
+
isImmediate = immediate === true;
|
5271
|
+
}
|
5255
5272
|
}
|
5256
5273
|
var index = findItem(target, method, this._throttlers);
|
5257
5274
|
if (index > -1) {
|
@@ -5278,29 +5295,46 @@ enifed('backburner', ['exports'], function (exports) {
|
|
5278
5295
|
return timer;
|
5279
5296
|
};
|
5280
5297
|
|
5281
|
-
Backburner.prototype.debounce = function (
|
5298
|
+
Backburner.prototype.debounce = function (targetOrThisArgOrMethod) {
|
5282
5299
|
var _this3 = this,
|
5283
5300
|
_len5,
|
5284
5301
|
args,
|
5285
5302
|
_key5,
|
5286
5303
|
timerId;
|
5287
5304
|
|
5288
|
-
|
5289
|
-
|
5290
|
-
|
5291
|
-
|
5292
|
-
var immediate = args.pop();
|
5305
|
+
var target = void 0;
|
5306
|
+
var method = void 0;
|
5307
|
+
var immediate = void 0;
|
5293
5308
|
var isImmediate = void 0;
|
5294
5309
|
var wait = void 0;
|
5295
|
-
|
5296
|
-
|
5310
|
+
|
5311
|
+
for (_len5 = arguments.length, args = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
5312
|
+
args[_key5 - 1] = arguments[_key5];
|
5313
|
+
}
|
5314
|
+
|
5315
|
+
if (args.length === 1) {
|
5316
|
+
method = targetOrThisArgOrMethod;
|
5317
|
+
wait = args.pop();
|
5318
|
+
target = null;
|
5297
5319
|
isImmediate = false;
|
5298
5320
|
} else {
|
5299
|
-
|
5300
|
-
|
5301
|
-
|
5302
|
-
|
5303
|
-
|
5321
|
+
target = targetOrThisArgOrMethod;
|
5322
|
+
method = args.shift();
|
5323
|
+
immediate = args.pop();
|
5324
|
+
if (isString(method)) {
|
5325
|
+
method = target[method];
|
5326
|
+
} else if (!isFunction(method)) {
|
5327
|
+
args.unshift(method);
|
5328
|
+
method = target;
|
5329
|
+
target = null;
|
5330
|
+
}
|
5331
|
+
if (isCoercableNumber(immediate)) {
|
5332
|
+
wait = immediate;
|
5333
|
+
isImmediate = false;
|
5334
|
+
} else {
|
5335
|
+
wait = args.pop();
|
5336
|
+
isImmediate = immediate === true;
|
5337
|
+
}
|
5304
5338
|
}
|
5305
5339
|
wait = parseInt(wait, 10);
|
5306
5340
|
// Remove debouncee
|
@@ -16476,6 +16510,7 @@ enifed('ember-template-compiler/system/compile-options', ['exports', 'ember-util
|
|
16476
16510
|
var options = (0, _emberUtils.assign)({ meta: {} }, _options),
|
16477
16511
|
meta,
|
16478
16512
|
potententialPugins,
|
16513
|
+
providedPlugins,
|
16479
16514
|
pluginsToAdd;
|
16480
16515
|
|
16481
16516
|
// move `moduleName` into `meta` property
|
@@ -16489,11 +16524,14 @@ enifed('ember-template-compiler/system/compile-options', ['exports', 'ember-util
|
|
16489
16524
|
options.plugins = { ast: [].concat(USER_PLUGINS, _plugins.default) };
|
16490
16525
|
} else {
|
16491
16526
|
potententialPugins = [].concat(USER_PLUGINS, _plugins.default);
|
16527
|
+
providedPlugins = options.plugins.ast.map(function (plugin) {
|
16528
|
+
return wrapLegacyPluginIfNeeded(plugin);
|
16529
|
+
});
|
16492
16530
|
pluginsToAdd = potententialPugins.filter(function (plugin) {
|
16493
16531
|
return options.plugins.ast.indexOf(plugin) === -1;
|
16494
16532
|
});
|
16495
16533
|
|
16496
|
-
options.plugins.ast =
|
16534
|
+
options.plugins.ast = providedPlugins.concat(pluginsToAdd);
|
16497
16535
|
}
|
16498
16536
|
|
16499
16537
|
return options;
|
@@ -16503,40 +16541,65 @@ enifed('ember-template-compiler/system/compile-options', ['exports', 'ember-util
|
|
16503
16541
|
throw new Error('Attempting to register ' + _plugin + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
16504
16542
|
}
|
16505
16543
|
|
16506
|
-
|
16544
|
+
for (i = 0; i < USER_PLUGINS.length; i++) {
|
16545
|
+
PLUGIN = USER_PLUGINS[i];
|
16546
|
+
|
16547
|
+
if (PLUGIN === _plugin || PLUGIN.__raw === _plugin) {
|
16548
|
+
return;
|
16549
|
+
}
|
16550
|
+
}
|
16551
|
+
|
16552
|
+
var plugin = wrapLegacyPluginIfNeeded(_plugin),
|
16553
|
+
i,
|
16554
|
+
PLUGIN;
|
16555
|
+
|
16556
|
+
USER_PLUGINS = [plugin].concat(USER_PLUGINS);
|
16557
|
+
};
|
16558
|
+
exports.unregisterPlugin = function (type, PluginClass) {
|
16559
|
+
if (type !== 'ast') {
|
16560
|
+
throw new Error('Attempting to unregister ' + PluginClass + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
16561
|
+
}
|
16562
|
+
|
16563
|
+
USER_PLUGINS = USER_PLUGINS.filter(function (plugin) {
|
16564
|
+
return plugin !== PluginClass && plugin.__raw !== PluginClass;
|
16565
|
+
});
|
16566
|
+
};
|
16567
|
+
|
16568
|
+
var USER_PLUGINS = [];
|
16569
|
+
|
16570
|
+
function wrapLegacyPluginIfNeeded(_plugin) {
|
16571
|
+
var plugin = _plugin;
|
16507
16572
|
if (_plugin.prototype && _plugin.prototype.transform) {
|
16508
16573
|
plugin = function (env) {
|
16574
|
+
var pluginInstantiated = false;
|
16575
|
+
|
16509
16576
|
return {
|
16510
16577
|
name: _plugin.constructor && _plugin.constructor.name,
|
16511
16578
|
|
16512
16579
|
visitors: {
|
16513
16580
|
Program: function (node) {
|
16514
|
-
var
|
16581
|
+
var _plugin2;
|
16582
|
+
|
16583
|
+
if (!pluginInstantiated) {
|
16584
|
+
|
16585
|
+
pluginInstantiated = true;
|
16586
|
+
_plugin2 = new _plugin(env);
|
16515
16587
|
|
16516
|
-
plugin.syntax = env.syntax;
|
16517
16588
|
|
16518
|
-
|
16589
|
+
_plugin2.syntax = env.syntax;
|
16590
|
+
|
16591
|
+
return _plugin2.transform(node);
|
16592
|
+
}
|
16519
16593
|
}
|
16520
16594
|
}
|
16521
16595
|
};
|
16522
16596
|
};
|
16523
|
-
} else {
|
16524
|
-
plugin = _plugin;
|
16525
|
-
}
|
16526
16597
|
|
16527
|
-
|
16528
|
-
};
|
16529
|
-
exports.removePlugin = function (type, PluginClass) {
|
16530
|
-
if (type !== 'ast') {
|
16531
|
-
throw new Error('Attempting to unregister ' + PluginClass + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
16598
|
+
plugin.__raw = _plugin;
|
16532
16599
|
}
|
16533
16600
|
|
16534
|
-
|
16535
|
-
|
16536
|
-
});
|
16537
|
-
};
|
16538
|
-
|
16539
|
-
var USER_PLUGINS = [];
|
16601
|
+
return plugin;
|
16602
|
+
}
|
16540
16603
|
});
|
16541
16604
|
enifed('ember-template-compiler/system/compile', ['exports', 'require', 'ember-template-compiler/system/precompile'], function (exports, _require2, _precompile) {
|
16542
16605
|
'use strict';
|
@@ -17344,7 +17407,7 @@ enifed('ember/features', ['exports', 'ember-environment', 'ember-utils'], functi
|
|
17344
17407
|
enifed("ember/version", ["exports"], function (exports) {
|
17345
17408
|
"use strict";
|
17346
17409
|
|
17347
|
-
exports.default = "2.18.
|
17410
|
+
exports.default = "2.18.1";
|
17348
17411
|
});
|
17349
17412
|
enifed("handlebars", ["exports"], function (exports) {
|
17350
17413
|
"use strict";
|
data/dist/ember-testing.js
CHANGED
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.18.
|
9
|
+
* @version 2.18.1
|
10
10
|
*/
|
11
11
|
|
12
12
|
/*global process */
|
@@ -17417,6 +17417,109 @@ QUnit.test('should pass ESLint', function(assert) {
|
|
17417
17417
|
assert.ok(true, 'ember-glimmer/tests/integration/components/dynamic-components-test.js should pass ESLint\n\n');
|
17418
17418
|
});
|
17419
17419
|
|
17420
|
+
enifed('ember-glimmer/tests/integration/components/error-handling-test', ['ember-babel', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-case'], function (_emberBabel, _emberMetal, _helpers, _testCase) {
|
17421
|
+
'use strict';
|
17422
|
+
|
17423
|
+
(0, _testCase.moduleFor)('Errors thrown during render', function (_RenderingTest) {
|
17424
|
+
(0, _emberBabel.inherits)(_class, _RenderingTest);
|
17425
|
+
|
17426
|
+
function _class() {
|
17427
|
+
(0, _emberBabel.classCallCheck)(this, _class);
|
17428
|
+
return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));
|
17429
|
+
}
|
17430
|
+
|
17431
|
+
_class.prototype['@test it can recover resets the transaction when an error is thrown during initial render'] = function testItCanRecoverResetsTheTransactionWhenAnErrorIsThrownDuringInitialRender(assert) {
|
17432
|
+
var _this2 = this;
|
17433
|
+
|
17434
|
+
var shouldThrow = true;
|
17435
|
+
var FooBarComponent = _helpers.Component.extend({
|
17436
|
+
init: function () {
|
17437
|
+
this._super.apply(this, arguments);
|
17438
|
+
if (shouldThrow) {
|
17439
|
+
throw new Error('silly mistake in init!');
|
17440
|
+
}
|
17441
|
+
}
|
17442
|
+
});
|
17443
|
+
|
17444
|
+
this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });
|
17445
|
+
|
17446
|
+
assert.throws(function () {
|
17447
|
+
_this2.render('{{#if switch}}{{#foo-bar}}{{foo-bar}}{{/foo-bar}}{{/if}}', { switch: true });
|
17448
|
+
}, /silly mistake in init/);
|
17449
|
+
|
17450
|
+
assert.equal(this.env.inTransaction, false, 'should not be in a transaction even though an error was thrown');
|
17451
|
+
|
17452
|
+
this.assertText('');
|
17453
|
+
|
17454
|
+
this.runTask(function () {
|
17455
|
+
return (0, _emberMetal.set)(_this2.context, 'switch', false);
|
17456
|
+
});
|
17457
|
+
|
17458
|
+
shouldThrow = false;
|
17459
|
+
|
17460
|
+
this.runTask(function () {
|
17461
|
+
return (0, _emberMetal.set)(_this2.context, 'switch', true);
|
17462
|
+
});
|
17463
|
+
|
17464
|
+
this.assertText('hello');
|
17465
|
+
};
|
17466
|
+
|
17467
|
+
_class.prototype['@test it can recover resets the transaction when an error is thrown during rerender'] = function testItCanRecoverResetsTheTransactionWhenAnErrorIsThrownDuringRerender(assert) {
|
17468
|
+
var _this3 = this;
|
17469
|
+
|
17470
|
+
var shouldThrow = false;
|
17471
|
+
var FooBarComponent = _helpers.Component.extend({
|
17472
|
+
init: function () {
|
17473
|
+
this._super.apply(this, arguments);
|
17474
|
+
if (shouldThrow) {
|
17475
|
+
throw new Error('silly mistake in init!');
|
17476
|
+
}
|
17477
|
+
}
|
17478
|
+
});
|
17479
|
+
|
17480
|
+
this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });
|
17481
|
+
|
17482
|
+
this.render('{{#if switch}}{{#foo-bar}}{{foo-bar}}{{/foo-bar}}{{/if}}', { switch: true });
|
17483
|
+
|
17484
|
+
this.assertText('hello');
|
17485
|
+
|
17486
|
+
this.runTask(function () {
|
17487
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', false);
|
17488
|
+
});
|
17489
|
+
|
17490
|
+
shouldThrow = true;
|
17491
|
+
|
17492
|
+
assert.throws(function () {
|
17493
|
+
_this3.runTask(function () {
|
17494
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', true);
|
17495
|
+
});
|
17496
|
+
}, /silly mistake in init/);
|
17497
|
+
|
17498
|
+
assert.equal(this.env.inTransaction, false, 'should not be in a transaction even though an error was thrown');
|
17499
|
+
|
17500
|
+
this.assertText('');
|
17501
|
+
|
17502
|
+
this.runTask(function () {
|
17503
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', false);
|
17504
|
+
});
|
17505
|
+
shouldThrow = false;
|
17506
|
+
|
17507
|
+
this.runTask(function () {
|
17508
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', true);
|
17509
|
+
});
|
17510
|
+
|
17511
|
+
this.assertText('hello');
|
17512
|
+
};
|
17513
|
+
|
17514
|
+
return _class;
|
17515
|
+
}(_testCase.RenderingTest));
|
17516
|
+
});
|
17517
|
+
QUnit.module('ESLint | ember-glimmer/tests/integration/components/error-handling-test.js');
|
17518
|
+
QUnit.test('should pass ESLint', function(assert) {
|
17519
|
+
assert.expect(1);
|
17520
|
+
assert.ok(true, 'ember-glimmer/tests/integration/components/error-handling-test.js should pass ESLint\n\n');
|
17521
|
+
});
|
17522
|
+
|
17420
17523
|
enifed('ember-glimmer/tests/integration/components/fragment-components-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _abstractTestCase, _helpers, _emberMetal) {
|
17421
17524
|
'use strict';
|
17422
17525
|
|
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.18.
|
9
|
+
* @version 2.18.1
|
10
10
|
*/
|
11
11
|
|
12
12
|
/*global process */
|
@@ -16620,6 +16620,102 @@ enifed('ember-glimmer/tests/integration/components/dynamic-components-test', ['e
|
|
16620
16620
|
return _class;
|
16621
16621
|
}(_testCase.RenderingTest));
|
16622
16622
|
});
|
16623
|
+
enifed('ember-glimmer/tests/integration/components/error-handling-test', ['ember-babel', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-case'], function (_emberBabel, _emberMetal, _helpers, _testCase) {
|
16624
|
+
'use strict';
|
16625
|
+
|
16626
|
+
(0, _testCase.moduleFor)('Errors thrown during render', function (_RenderingTest) {
|
16627
|
+
(0, _emberBabel.inherits)(_class, _RenderingTest);
|
16628
|
+
|
16629
|
+
function _class() {
|
16630
|
+
return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));
|
16631
|
+
}
|
16632
|
+
|
16633
|
+
_class.prototype['@test it can recover resets the transaction when an error is thrown during initial render'] = function (assert) {
|
16634
|
+
var _this2 = this;
|
16635
|
+
|
16636
|
+
var shouldThrow = true;
|
16637
|
+
var FooBarComponent = _helpers.Component.extend({
|
16638
|
+
init: function () {
|
16639
|
+
this._super.apply(this, arguments);
|
16640
|
+
if (shouldThrow) {
|
16641
|
+
throw new Error('silly mistake in init!');
|
16642
|
+
}
|
16643
|
+
}
|
16644
|
+
});
|
16645
|
+
|
16646
|
+
this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });
|
16647
|
+
|
16648
|
+
assert.throws(function () {
|
16649
|
+
_this2.render('{{#if switch}}{{#foo-bar}}{{foo-bar}}{{/foo-bar}}{{/if}}', { switch: true });
|
16650
|
+
}, /silly mistake in init/);
|
16651
|
+
|
16652
|
+
assert.equal(this.env.inTransaction, false, 'should not be in a transaction even though an error was thrown');
|
16653
|
+
|
16654
|
+
this.assertText('');
|
16655
|
+
|
16656
|
+
this.runTask(function () {
|
16657
|
+
return (0, _emberMetal.set)(_this2.context, 'switch', false);
|
16658
|
+
});
|
16659
|
+
|
16660
|
+
shouldThrow = false;
|
16661
|
+
|
16662
|
+
this.runTask(function () {
|
16663
|
+
return (0, _emberMetal.set)(_this2.context, 'switch', true);
|
16664
|
+
});
|
16665
|
+
|
16666
|
+
this.assertText('hello');
|
16667
|
+
};
|
16668
|
+
|
16669
|
+
_class.prototype['@test it can recover resets the transaction when an error is thrown during rerender'] = function (assert) {
|
16670
|
+
var _this3 = this;
|
16671
|
+
|
16672
|
+
var shouldThrow = false;
|
16673
|
+
var FooBarComponent = _helpers.Component.extend({
|
16674
|
+
init: function () {
|
16675
|
+
this._super.apply(this, arguments);
|
16676
|
+
if (shouldThrow) {
|
16677
|
+
throw new Error('silly mistake in init!');
|
16678
|
+
}
|
16679
|
+
}
|
16680
|
+
});
|
16681
|
+
|
16682
|
+
this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });
|
16683
|
+
|
16684
|
+
this.render('{{#if switch}}{{#foo-bar}}{{foo-bar}}{{/foo-bar}}{{/if}}', { switch: true });
|
16685
|
+
|
16686
|
+
this.assertText('hello');
|
16687
|
+
|
16688
|
+
this.runTask(function () {
|
16689
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', false);
|
16690
|
+
});
|
16691
|
+
|
16692
|
+
shouldThrow = true;
|
16693
|
+
|
16694
|
+
assert.throws(function () {
|
16695
|
+
_this3.runTask(function () {
|
16696
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', true);
|
16697
|
+
});
|
16698
|
+
}, /silly mistake in init/);
|
16699
|
+
|
16700
|
+
assert.equal(this.env.inTransaction, false, 'should not be in a transaction even though an error was thrown');
|
16701
|
+
|
16702
|
+
this.assertText('');
|
16703
|
+
|
16704
|
+
this.runTask(function () {
|
16705
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', false);
|
16706
|
+
});
|
16707
|
+
shouldThrow = false;
|
16708
|
+
|
16709
|
+
this.runTask(function () {
|
16710
|
+
return (0, _emberMetal.set)(_this3.context, 'switch', true);
|
16711
|
+
});
|
16712
|
+
|
16713
|
+
this.assertText('hello');
|
16714
|
+
};
|
16715
|
+
|
16716
|
+
return _class;
|
16717
|
+
}(_testCase.RenderingTest));
|
16718
|
+
});
|
16623
16719
|
enifed('ember-glimmer/tests/integration/components/fragment-components-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _abstractTestCase, _helpers, _emberMetal) {
|
16624
16720
|
'use strict';
|
16625
16721
|
|
@@ -60536,7 +60632,7 @@ enifed('ember-template-compiler/system/compile-options', ['exports', 'ember-util
|
|
60536
60632
|
|
60537
60633
|
exports.default = compileOptions;
|
60538
60634
|
exports.registerPlugin = registerPlugin;
|
60539
|
-
exports.
|
60635
|
+
exports.unregisterPlugin = unregisterPlugin;
|
60540
60636
|
|
60541
60637
|
|
60542
60638
|
var USER_PLUGINS = [];
|
@@ -60554,51 +60650,73 @@ enifed('ember-template-compiler/system/compile-options', ['exports', 'ember-util
|
|
60554
60650
|
options.plugins = { ast: [].concat(USER_PLUGINS, _plugins.default) };
|
60555
60651
|
} else {
|
60556
60652
|
var potententialPugins = [].concat(USER_PLUGINS, _plugins.default);
|
60653
|
+
var providedPlugins = options.plugins.ast.map(function (plugin) {
|
60654
|
+
return wrapLegacyPluginIfNeeded(plugin);
|
60655
|
+
});
|
60557
60656
|
var pluginsToAdd = potententialPugins.filter(function (plugin) {
|
60558
60657
|
return options.plugins.ast.indexOf(plugin) === -1;
|
60559
60658
|
});
|
60560
|
-
options.plugins.ast =
|
60659
|
+
options.plugins.ast = providedPlugins.concat(pluginsToAdd);
|
60561
60660
|
}
|
60562
60661
|
|
60563
60662
|
return options;
|
60564
60663
|
}
|
60565
60664
|
|
60566
|
-
function
|
60567
|
-
|
60568
|
-
throw new Error('Attempting to register ' + _plugin + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
60569
|
-
}
|
60570
|
-
|
60571
|
-
var plugin = void 0;
|
60665
|
+
function wrapLegacyPluginIfNeeded(_plugin) {
|
60666
|
+
var plugin = _plugin;
|
60572
60667
|
if (_plugin.prototype && _plugin.prototype.transform) {
|
60573
60668
|
plugin = function (env) {
|
60669
|
+
var pluginInstantiated = false;
|
60670
|
+
|
60574
60671
|
return {
|
60575
60672
|
name: _plugin.constructor && _plugin.constructor.name,
|
60576
60673
|
|
60577
60674
|
visitors: {
|
60578
60675
|
Program: function (node) {
|
60579
|
-
|
60676
|
+
if (!pluginInstantiated) {
|
60677
|
+
|
60678
|
+
pluginInstantiated = true;
|
60679
|
+
var _plugin2 = new _plugin(env);
|
60580
60680
|
|
60581
|
-
|
60681
|
+
_plugin2.syntax = env.syntax;
|
60582
60682
|
|
60583
|
-
|
60683
|
+
return _plugin2.transform(node);
|
60684
|
+
}
|
60584
60685
|
}
|
60585
60686
|
}
|
60586
60687
|
};
|
60587
60688
|
};
|
60588
|
-
|
60589
|
-
plugin = _plugin;
|
60689
|
+
|
60690
|
+
plugin.__raw = _plugin;
|
60590
60691
|
}
|
60591
60692
|
|
60693
|
+
return plugin;
|
60694
|
+
}
|
60695
|
+
|
60696
|
+
function registerPlugin(type, _plugin) {
|
60697
|
+
if (type !== 'ast') {
|
60698
|
+
throw new Error('Attempting to register ' + _plugin + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
60699
|
+
}
|
60700
|
+
|
60701
|
+
for (var i = 0; i < USER_PLUGINS.length; i++) {
|
60702
|
+
var PLUGIN = USER_PLUGINS[i];
|
60703
|
+
if (PLUGIN === _plugin || PLUGIN.__raw === _plugin) {
|
60704
|
+
return;
|
60705
|
+
}
|
60706
|
+
}
|
60707
|
+
|
60708
|
+
var plugin = wrapLegacyPluginIfNeeded(_plugin);
|
60709
|
+
|
60592
60710
|
USER_PLUGINS = [plugin].concat(USER_PLUGINS);
|
60593
60711
|
}
|
60594
60712
|
|
60595
|
-
function
|
60713
|
+
function unregisterPlugin(type, PluginClass) {
|
60596
60714
|
if (type !== 'ast') {
|
60597
60715
|
throw new Error('Attempting to unregister ' + PluginClass + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
60598
60716
|
}
|
60599
60717
|
|
60600
60718
|
USER_PLUGINS = USER_PLUGINS.filter(function (plugin) {
|
60601
|
-
return plugin !== PluginClass;
|
60719
|
+
return plugin !== PluginClass && plugin.__raw !== PluginClass;
|
60602
60720
|
});
|
60603
60721
|
}
|
60604
60722
|
});
|
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.18.
|
9
|
+
* @version 2.18.1
|
10
10
|
*/
|
11
11
|
|
12
12
|
/*global process */
|
@@ -9723,25 +9723,42 @@ enifed('backburner', ['exports', 'ember-babel'], function (exports, _emberBabel)
|
|
9723
9723
|
return this._setTimeout(fn, executeAt);
|
9724
9724
|
};
|
9725
9725
|
|
9726
|
-
Backburner.prototype.throttle = function throttle(
|
9726
|
+
Backburner.prototype.throttle = function throttle(targetOrThisArgOrMethod) {
|
9727
9727
|
var _this2 = this;
|
9728
9728
|
|
9729
|
-
|
9730
|
-
|
9731
|
-
|
9732
|
-
|
9733
|
-
var immediate = args.pop();
|
9729
|
+
var target = void 0;
|
9730
|
+
var method = void 0;
|
9731
|
+
var immediate = void 0;
|
9734
9732
|
var isImmediate = void 0;
|
9735
9733
|
var wait = void 0;
|
9736
|
-
|
9737
|
-
|
9734
|
+
|
9735
|
+
for (var _len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
9736
|
+
args[_key4 - 1] = arguments[_key4];
|
9737
|
+
}
|
9738
|
+
|
9739
|
+
if (args.length === 1) {
|
9740
|
+
method = targetOrThisArgOrMethod;
|
9741
|
+
wait = args.pop();
|
9742
|
+
target = null;
|
9738
9743
|
isImmediate = true;
|
9739
9744
|
} else {
|
9740
|
-
|
9741
|
-
|
9742
|
-
|
9743
|
-
|
9744
|
-
|
9745
|
+
target = targetOrThisArgOrMethod;
|
9746
|
+
method = args.shift();
|
9747
|
+
immediate = args.pop();
|
9748
|
+
if (isString(method)) {
|
9749
|
+
method = target[method];
|
9750
|
+
} else if (!isFunction(method)) {
|
9751
|
+
args.unshift(method);
|
9752
|
+
method = target;
|
9753
|
+
target = null;
|
9754
|
+
}
|
9755
|
+
if (isCoercableNumber(immediate)) {
|
9756
|
+
wait = immediate;
|
9757
|
+
isImmediate = true;
|
9758
|
+
} else {
|
9759
|
+
wait = args.pop();
|
9760
|
+
isImmediate = immediate === true;
|
9761
|
+
}
|
9745
9762
|
}
|
9746
9763
|
var index = findItem(target, method, this._throttlers);
|
9747
9764
|
if (index > -1) {
|
@@ -9768,25 +9785,42 @@ enifed('backburner', ['exports', 'ember-babel'], function (exports, _emberBabel)
|
|
9768
9785
|
return timer;
|
9769
9786
|
};
|
9770
9787
|
|
9771
|
-
Backburner.prototype.debounce = function debounce(
|
9788
|
+
Backburner.prototype.debounce = function debounce(targetOrThisArgOrMethod) {
|
9772
9789
|
var _this3 = this;
|
9773
9790
|
|
9774
|
-
|
9775
|
-
|
9776
|
-
|
9777
|
-
|
9778
|
-
var immediate = args.pop();
|
9791
|
+
var target = void 0;
|
9792
|
+
var method = void 0;
|
9793
|
+
var immediate = void 0;
|
9779
9794
|
var isImmediate = void 0;
|
9780
9795
|
var wait = void 0;
|
9781
|
-
|
9782
|
-
|
9796
|
+
|
9797
|
+
for (var _len5 = arguments.length, args = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
9798
|
+
args[_key5 - 1] = arguments[_key5];
|
9799
|
+
}
|
9800
|
+
|
9801
|
+
if (args.length === 1) {
|
9802
|
+
method = targetOrThisArgOrMethod;
|
9803
|
+
wait = args.pop();
|
9804
|
+
target = null;
|
9783
9805
|
isImmediate = false;
|
9784
9806
|
} else {
|
9785
|
-
|
9786
|
-
|
9787
|
-
|
9788
|
-
|
9789
|
-
|
9807
|
+
target = targetOrThisArgOrMethod;
|
9808
|
+
method = args.shift();
|
9809
|
+
immediate = args.pop();
|
9810
|
+
if (isString(method)) {
|
9811
|
+
method = target[method];
|
9812
|
+
} else if (!isFunction(method)) {
|
9813
|
+
args.unshift(method);
|
9814
|
+
method = target;
|
9815
|
+
target = null;
|
9816
|
+
}
|
9817
|
+
if (isCoercableNumber(immediate)) {
|
9818
|
+
wait = immediate;
|
9819
|
+
isImmediate = false;
|
9820
|
+
} else {
|
9821
|
+
wait = args.pop();
|
9822
|
+
isImmediate = immediate === true;
|
9823
|
+
}
|
9790
9824
|
}
|
9791
9825
|
wait = parseInt(wait, 10);
|
9792
9826
|
// Remove debouncee
|
@@ -19572,6 +19606,9 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', '@glimmer/reference'
|
|
19572
19606
|
} finally {
|
19573
19607
|
if (!completedWithoutError) {
|
19574
19608
|
this._lastRevision = _reference.CURRENT_TAG.value();
|
19609
|
+
if (this._env.inTransaction === true) {
|
19610
|
+
this._env.commit();
|
19611
|
+
}
|
19575
19612
|
}
|
19576
19613
|
this._isRenderingRoots = false;
|
19577
19614
|
}
|
@@ -42871,7 +42908,7 @@ enifed('ember-template-compiler/system/compile-options', ['exports', 'ember-util
|
|
42871
42908
|
|
42872
42909
|
exports.default = compileOptions;
|
42873
42910
|
exports.registerPlugin = registerPlugin;
|
42874
|
-
exports.
|
42911
|
+
exports.unregisterPlugin = unregisterPlugin;
|
42875
42912
|
|
42876
42913
|
|
42877
42914
|
var USER_PLUGINS = [];
|
@@ -42889,51 +42926,73 @@ enifed('ember-template-compiler/system/compile-options', ['exports', 'ember-util
|
|
42889
42926
|
options.plugins = { ast: [].concat(USER_PLUGINS, _plugins.default) };
|
42890
42927
|
} else {
|
42891
42928
|
var potententialPugins = [].concat(USER_PLUGINS, _plugins.default);
|
42929
|
+
var providedPlugins = options.plugins.ast.map(function (plugin) {
|
42930
|
+
return wrapLegacyPluginIfNeeded(plugin);
|
42931
|
+
});
|
42892
42932
|
var pluginsToAdd = potententialPugins.filter(function (plugin) {
|
42893
42933
|
return options.plugins.ast.indexOf(plugin) === -1;
|
42894
42934
|
});
|
42895
|
-
options.plugins.ast =
|
42935
|
+
options.plugins.ast = providedPlugins.concat(pluginsToAdd);
|
42896
42936
|
}
|
42897
42937
|
|
42898
42938
|
return options;
|
42899
42939
|
}
|
42900
42940
|
|
42901
|
-
function
|
42902
|
-
|
42903
|
-
throw new Error('Attempting to register ' + _plugin + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
42904
|
-
}
|
42905
|
-
|
42906
|
-
var plugin = void 0;
|
42941
|
+
function wrapLegacyPluginIfNeeded(_plugin) {
|
42942
|
+
var plugin = _plugin;
|
42907
42943
|
if (_plugin.prototype && _plugin.prototype.transform) {
|
42908
42944
|
plugin = function (env) {
|
42945
|
+
var pluginInstantiated = false;
|
42946
|
+
|
42909
42947
|
return {
|
42910
42948
|
name: _plugin.constructor && _plugin.constructor.name,
|
42911
42949
|
|
42912
42950
|
visitors: {
|
42913
42951
|
Program: function (node) {
|
42914
|
-
|
42952
|
+
if (!pluginInstantiated) {
|
42953
|
+
|
42954
|
+
pluginInstantiated = true;
|
42955
|
+
var _plugin2 = new _plugin(env);
|
42915
42956
|
|
42916
|
-
|
42957
|
+
_plugin2.syntax = env.syntax;
|
42917
42958
|
|
42918
|
-
|
42959
|
+
return _plugin2.transform(node);
|
42960
|
+
}
|
42919
42961
|
}
|
42920
42962
|
}
|
42921
42963
|
};
|
42922
42964
|
};
|
42923
|
-
|
42924
|
-
plugin = _plugin;
|
42965
|
+
|
42966
|
+
plugin.__raw = _plugin;
|
42967
|
+
}
|
42968
|
+
|
42969
|
+
return plugin;
|
42970
|
+
}
|
42971
|
+
|
42972
|
+
function registerPlugin(type, _plugin) {
|
42973
|
+
if (type !== 'ast') {
|
42974
|
+
throw new Error('Attempting to register ' + _plugin + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
42925
42975
|
}
|
42926
42976
|
|
42977
|
+
for (var i = 0; i < USER_PLUGINS.length; i++) {
|
42978
|
+
var PLUGIN = USER_PLUGINS[i];
|
42979
|
+
if (PLUGIN === _plugin || PLUGIN.__raw === _plugin) {
|
42980
|
+
return;
|
42981
|
+
}
|
42982
|
+
}
|
42983
|
+
|
42984
|
+
var plugin = wrapLegacyPluginIfNeeded(_plugin);
|
42985
|
+
|
42927
42986
|
USER_PLUGINS = [plugin].concat(USER_PLUGINS);
|
42928
42987
|
}
|
42929
42988
|
|
42930
|
-
function
|
42989
|
+
function unregisterPlugin(type, PluginClass) {
|
42931
42990
|
if (type !== 'ast') {
|
42932
42991
|
throw new Error('Attempting to unregister ' + PluginClass + ' as "' + type + '" which is not a valid Glimmer plugin type.');
|
42933
42992
|
}
|
42934
42993
|
|
42935
42994
|
USER_PLUGINS = USER_PLUGINS.filter(function (plugin) {
|
42936
|
-
return plugin !== PluginClass;
|
42995
|
+
return plugin !== PluginClass && plugin.__raw !== PluginClass;
|
42937
42996
|
});
|
42938
42997
|
}
|
42939
42998
|
});
|
@@ -47718,7 +47777,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
47718
47777
|
enifed("ember/version", ["exports"], function (exports) {
|
47719
47778
|
"use strict";
|
47720
47779
|
|
47721
|
-
exports.default = "2.18.
|
47780
|
+
exports.default = "2.18.1";
|
47722
47781
|
});
|
47723
47782
|
enifed("handlebars", ["exports"], function (exports) {
|
47724
47783
|
"use strict";
|
data/dist/ember.min.js
CHANGED
@@ -804,24 +804,22 @@ return this._ensureInstance().schedule(e,o,s,a,!0,u)},e.prototype.setTimeout=fun
|
|
804
804
|
var e,r,o,s,u=r.length,c=0,l=void 0,p=void 0,h=void 0,f=void 0,d=void 0
|
805
805
|
if(0!==u){1===u?l=r.shift():2===u?(h=r[0],f=r[1],n(f)?(p=r.shift(),l=r.shift()):null!==h&&t(f)&&f in h?(p=r.shift(),l=p[r.shift()]):i(f)?(l=r.shift(),c=parseInt(r.shift(),10)):l=r.shift()):(s=r[r.length-1],i(s)&&(c=parseInt(r.pop(),10)),h=r[0],d=r[1],n(d)?(p=r.shift(),l=r.shift()):null!==h&&t(d)&&d in h?(p=r.shift(),l=p[r.shift()]):l=r.shift())
|
806
806
|
var m=a(this.options),g=this._platform.now()+c,y=void 0
|
807
|
-
return y=m?function(){try{l.apply(p,r)}catch(e){m(e)}}:function(){l.apply(p,r)},this._setTimeout(y,g)}},e.prototype.throttle=function(e
|
808
|
-
for(r=arguments.length,o=Array(r>
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
var
|
819
|
-
|
820
|
-
var
|
821
|
-
d
|
822
|
-
|
823
|
-
h===!1&&l._run(n,r,i)},f)
|
824
|
-
return h&&d===-1&&this._join(e,n,o),this._debouncees.push(e,n,o,m),m},e.prototype.cancelTimers=function(){var e,t
|
807
|
+
return y=m?function(){try{l.apply(p,r)}catch(e){m(e)}}:function(){l.apply(p,r)},this._setTimeout(y,g)}},e.prototype.throttle=function(e){var r,o,s,a=this,l=void 0,p=void 0,h=void 0,f=void 0,d=void 0
|
808
|
+
for(r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s]
|
809
|
+
1===o.length?(p=e,d=o.pop(),l=null,f=!0):(l=e,p=o.shift(),h=o.pop(),t(p)?p=l[p]:n(p)||(o.unshift(p),p=l,l=null),i(h)?(d=h,f=!0):(d=o.pop(),f=h===!0))
|
810
|
+
var m=u(l,p,this._throttlers)
|
811
|
+
if(m>-1)return this._throttlers[m+2]=o,this._throttlers[m+3]
|
812
|
+
d=parseInt(d,10)
|
813
|
+
var g=this._platform.setTimeout(function(){var e=c(g,a._throttlers),t=a._throttlers.splice(e,4),n=t[0],r=t[1],i=t[2]
|
814
|
+
f===!1&&a._run(n,r,i)},d)
|
815
|
+
return f&&this._join(l,p,o),this._throttlers.push(l,p,o,g),g},e.prototype.debounce=function(e){var r,o,s,a,l=this,p=void 0,h=void 0,f=void 0,d=void 0,m=void 0
|
816
|
+
for(r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s]
|
817
|
+
1===o.length?(h=e,m=o.pop(),p=null,d=!1):(p=e,h=o.shift(),f=o.pop(),t(h)?h=p[h]:n(h)||(o.unshift(h),h=p,p=null),i(f)?(m=f,d=!1):(m=o.pop(),d=f===!0)),m=parseInt(m,10)
|
818
|
+
var g=u(p,h,this._debouncees)
|
819
|
+
g>-1&&(a=this._debouncees[g+3],this._platform.clearTimeout(a),this._debouncees.splice(g,4))
|
820
|
+
var y=this._platform.setTimeout(function(){var e=c(y,l._debouncees),t=l._debouncees.splice(e,4),n=t[0],r=t[1],i=t[2]
|
821
|
+
d===!1&&l._run(n,r,i)},m)
|
822
|
+
return d&&g===-1&&this._join(p,h,o),this._debouncees.push(p,h,o,y),y},e.prototype.cancelTimers=function(){var e,t
|
825
823
|
for(e=3;e<this._throttlers.length;e+=4)this._platform.clearTimeout(this._throttlers[e])
|
826
824
|
for(this._throttlers=[],t=3;t<this._debouncees.length;t+=4)this._platform.clearTimeout(this._debouncees[t])
|
827
825
|
this._debouncees=[],this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()},e.prototype.hasTimers=function(){return this._timers.length>0||this._debouncees.length>0||this._throttlers.length>0||null!==this._autorun},e.prototype.cancel=function(e){if(!e)return!1
|
@@ -1343,7 +1341,7 @@ this._lastRevision=n.CURRENT_TAG.value(),u.commit()}while(l||a.length>p)
|
|
1343
1341
|
for(;c.length;)o=c.pop(),s=a.indexOf(o),a.splice(s,1)
|
1344
1342
|
0===this._roots.length&&h(this)},e.prototype._renderRootsTransaction=function(){if(!this._isRenderingRoots){this._isRenderingRoots=!0
|
1345
1343
|
var e=!1
|
1346
|
-
try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=n.CURRENT_TAG.value()),this._isRenderingRoots=!1}}},e.prototype._clearAllRoots=function(){var e,t,n=this._roots
|
1344
|
+
try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=n.CURRENT_TAG.value(),this._env.inTransaction===!0&&this._env.commit()),this._isRenderingRoots=!1}}},e.prototype._clearAllRoots=function(){var e,t,n=this._roots
|
1347
1345
|
for(e=0;e<n.length;e++)t=n[e],t.destroy()
|
1348
1346
|
this._removedRoots.length=0,this._roots=[],n.length&&h(this)},e.prototype._scheduleRevalidate=function(){d.scheduleOnce("render",this,this._revalidate)},e.prototype._isValid=function(){return this._destroyed||0===this._roots.length||n.CURRENT_TAG.validate(this._lastRevision)},e.prototype._revalidate=function(){this._isValid()||this._renderRootsTransaction()},e}()
|
1349
1347
|
e.InertRenderer=function(e){function n(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(n,e),n.create=function(e){var t=e.env,n=e.rootTemplate,r=e._viewRegistry
|
@@ -2573,7 +2571,7 @@ var b,_=s.computed
|
|
2573
2571
|
_.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)})
|
2574
2572
|
var w=s["default"].Handlebars=s["default"].Handlebars||{},O=s["default"].HTMLBars=s["default"].HTMLBars||{},E=w.Utils=w.Utils||{}
|
2575
2573
|
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"
|
2576
|
-
e["default"]="2.18.
|
2574
|
+
e["default"]="2.18.1"}),e("node-module",["exports"],function(e){var t="object"==typeof module&&"function"==typeof module.require
|
2577
2575
|
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"
|
2578
2576
|
function t(){var e=g(null)
|
2579
2577
|
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.18.
|
9
|
+
* @version 2.18.1
|
10
10
|
*/
|
11
11
|
|
12
12
|
/*global process */
|
@@ -10079,28 +10079,45 @@ enifed('backburner', ['exports'], function (exports) {
|
|
10079
10079
|
return this._setTimeout(fn, executeAt);
|
10080
10080
|
};
|
10081
10081
|
|
10082
|
-
Backburner.prototype.throttle = function (
|
10082
|
+
Backburner.prototype.throttle = function (targetOrThisArgOrMethod) {
|
10083
10083
|
var _this2 = this,
|
10084
10084
|
_len4,
|
10085
10085
|
args,
|
10086
10086
|
_key4;
|
10087
10087
|
|
10088
|
-
|
10089
|
-
|
10090
|
-
|
10091
|
-
|
10092
|
-
var immediate = args.pop();
|
10088
|
+
var target = void 0;
|
10089
|
+
var method = void 0;
|
10090
|
+
var immediate = void 0;
|
10093
10091
|
var isImmediate = void 0;
|
10094
10092
|
var wait = void 0;
|
10095
|
-
|
10096
|
-
|
10093
|
+
|
10094
|
+
for (_len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
10095
|
+
args[_key4 - 1] = arguments[_key4];
|
10096
|
+
}
|
10097
|
+
|
10098
|
+
if (args.length === 1) {
|
10099
|
+
method = targetOrThisArgOrMethod;
|
10100
|
+
wait = args.pop();
|
10101
|
+
target = null;
|
10097
10102
|
isImmediate = true;
|
10098
10103
|
} else {
|
10099
|
-
|
10100
|
-
|
10101
|
-
|
10102
|
-
|
10103
|
-
|
10104
|
+
target = targetOrThisArgOrMethod;
|
10105
|
+
method = args.shift();
|
10106
|
+
immediate = args.pop();
|
10107
|
+
if (isString(method)) {
|
10108
|
+
method = target[method];
|
10109
|
+
} else if (!isFunction(method)) {
|
10110
|
+
args.unshift(method);
|
10111
|
+
method = target;
|
10112
|
+
target = null;
|
10113
|
+
}
|
10114
|
+
if (isCoercableNumber(immediate)) {
|
10115
|
+
wait = immediate;
|
10116
|
+
isImmediate = true;
|
10117
|
+
} else {
|
10118
|
+
wait = args.pop();
|
10119
|
+
isImmediate = immediate === true;
|
10120
|
+
}
|
10104
10121
|
}
|
10105
10122
|
var index = findItem(target, method, this._throttlers);
|
10106
10123
|
if (index > -1) {
|
@@ -10127,29 +10144,46 @@ enifed('backburner', ['exports'], function (exports) {
|
|
10127
10144
|
return timer;
|
10128
10145
|
};
|
10129
10146
|
|
10130
|
-
Backburner.prototype.debounce = function (
|
10147
|
+
Backburner.prototype.debounce = function (targetOrThisArgOrMethod) {
|
10131
10148
|
var _this3 = this,
|
10132
10149
|
_len5,
|
10133
10150
|
args,
|
10134
10151
|
_key5,
|
10135
10152
|
timerId;
|
10136
10153
|
|
10137
|
-
|
10138
|
-
|
10139
|
-
|
10140
|
-
|
10141
|
-
var immediate = args.pop();
|
10154
|
+
var target = void 0;
|
10155
|
+
var method = void 0;
|
10156
|
+
var immediate = void 0;
|
10142
10157
|
var isImmediate = void 0;
|
10143
10158
|
var wait = void 0;
|
10144
|
-
|
10145
|
-
|
10159
|
+
|
10160
|
+
for (_len5 = arguments.length, args = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
10161
|
+
args[_key5 - 1] = arguments[_key5];
|
10162
|
+
}
|
10163
|
+
|
10164
|
+
if (args.length === 1) {
|
10165
|
+
method = targetOrThisArgOrMethod;
|
10166
|
+
wait = args.pop();
|
10167
|
+
target = null;
|
10146
10168
|
isImmediate = false;
|
10147
10169
|
} else {
|
10148
|
-
|
10149
|
-
|
10150
|
-
|
10151
|
-
|
10152
|
-
|
10170
|
+
target = targetOrThisArgOrMethod;
|
10171
|
+
method = args.shift();
|
10172
|
+
immediate = args.pop();
|
10173
|
+
if (isString(method)) {
|
10174
|
+
method = target[method];
|
10175
|
+
} else if (!isFunction(method)) {
|
10176
|
+
args.unshift(method);
|
10177
|
+
method = target;
|
10178
|
+
target = null;
|
10179
|
+
}
|
10180
|
+
if (isCoercableNumber(immediate)) {
|
10181
|
+
wait = immediate;
|
10182
|
+
isImmediate = false;
|
10183
|
+
} else {
|
10184
|
+
wait = args.pop();
|
10185
|
+
isImmediate = immediate === true;
|
10186
|
+
}
|
10153
10187
|
}
|
10154
10188
|
wait = parseInt(wait, 10);
|
10155
10189
|
// Remove debouncee
|
@@ -19161,6 +19195,9 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', '@glimmer/reference'
|
|
19161
19195
|
} finally {
|
19162
19196
|
if (!completedWithoutError) {
|
19163
19197
|
this._lastRevision = _reference.CURRENT_TAG.value();
|
19198
|
+
if (this._env.inTransaction === true) {
|
19199
|
+
this._env.commit();
|
19200
|
+
}
|
19164
19201
|
}
|
19165
19202
|
this._isRenderingRoots = false;
|
19166
19203
|
}
|
@@ -43859,7 +43896,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
43859
43896
|
enifed("ember/version", ["exports"], function (exports) {
|
43860
43897
|
"use strict";
|
43861
43898
|
|
43862
|
-
exports.default = "2.18.
|
43899
|
+
exports.default = "2.18.1";
|
43863
43900
|
});
|
43864
43901
|
/*global enifed */
|
43865
43902
|
enifed('node-module', ['exports'], function(_exports) {
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ember-source",
|
3
|
-
"version": "2.18.
|
3
|
+
"version": "2.18.1",
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
5
5
|
"keywords": [
|
6
6
|
"ember-addon"
|
@@ -11,13 +11,18 @@
|
|
11
11
|
},
|
12
12
|
"license": "MIT",
|
13
13
|
"files": [
|
14
|
+
"build-metadata.json",
|
14
15
|
"blueprints",
|
15
16
|
"dist",
|
16
17
|
"!dist/ember-tests.prod.js",
|
18
|
+
"!dist/ember-tests.prod.map",
|
17
19
|
"!dist/ember-tests.js",
|
20
|
+
"!dist/ember-tests.map",
|
18
21
|
"!dist/qunit",
|
19
22
|
"!dist/jquery",
|
20
23
|
"!dist/tests",
|
24
|
+
"!dist/node",
|
25
|
+
"docs/data.json",
|
21
26
|
"vendor/ember",
|
22
27
|
"index.js"
|
23
28
|
],
|
@@ -29,11 +34,9 @@
|
|
29
34
|
"build": "ember build --environment production",
|
30
35
|
"docs": "ember ember-cli-yuidoc",
|
31
36
|
"link:glimmer": "node bin/yarn-link-glimmer.js",
|
32
|
-
"release": "node scripts/release.js",
|
33
37
|
"sauce:launch": "ember sauce:launch",
|
34
38
|
"start": "ember serve",
|
35
39
|
"pretest": "ember build",
|
36
|
-
"prepare": "ember build -prod",
|
37
40
|
"lint": "tslint -p tsconfig.json && eslint node-tests",
|
38
41
|
"test": "node bin/run-tests.js",
|
39
42
|
"test:blueprints": "node node-tests/nodetest-runner.js",
|
@@ -78,7 +81,7 @@
|
|
78
81
|
"babel-plugin-transform-es2015-template-literals": "^6.22.0",
|
79
82
|
"babel-plugin-transform-proto-to-assign": "^6.23.0",
|
80
83
|
"babel-template": "^6.24.1",
|
81
|
-
"backburner.js": "^1.3.
|
84
|
+
"backburner.js": "^1.3.5",
|
82
85
|
"broccoli-babel-transpiler": "^6.1.1",
|
83
86
|
"broccoli-concat": "^3.2.2",
|
84
87
|
"broccoli-debug": "^0.6.3",
|
@@ -125,5 +128,7 @@
|
|
125
128
|
},
|
126
129
|
"ember-addon": {
|
127
130
|
"after": "ember-cli-legacy-blueprints"
|
128
|
-
}
|
129
|
-
|
131
|
+
},
|
132
|
+
"_versionPreviouslyCalculated": true,
|
133
|
+
"_originalVersion": "2.18.1"
|
134
|
+
}
|
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.18.
|
4
|
+
version: 2.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-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: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
|
-
rubygems_version: 2.7.
|
51
|
+
rubygems_version: 2.7.5
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: Ember.js source code wrapper.
|