ember-source 2.14.0.beta.2 → 2.14.0.beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-runtime.js +85 -101
- data/dist/ember-template-compiler.js +298 -314
- data/dist/ember-testing.js +452 -454
- data/dist/ember-tests.js +128 -32
- data/dist/ember-tests.prod.js +112 -28
- data/dist/ember.debug.js +771 -728
- data/dist/ember.min.js +194 -215
- data/dist/ember.prod.js +322 -821
- metadata +2 -2
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.14.0-beta.
|
9
|
+
* @version 2.14.0-beta.3
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -4389,21 +4389,29 @@ enifed('@glimmer/runtime', ['exports', 'ember-babel', '@glimmer/util', '@glimmer
|
|
4389
4389
|
}
|
4390
4390
|
|
4391
4391
|
RawInlineBlock.prototype.scan = function () {
|
4392
|
-
var buffer = []
|
4393
|
-
|
4394
|
-
|
4395
|
-
|
4396
|
-
statement = this.statements[i];
|
4392
|
+
var buffer = [];
|
4393
|
+
this.specializeStatements(this.statements, buffer);
|
4394
|
+
return new InlineBlock(buffer, this.table);
|
4395
|
+
};
|
4397
4396
|
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4397
|
+
RawInlineBlock.prototype.specializeStatements = function (statements, buffer) {
|
4398
|
+
var i, statement;
|
4399
|
+
|
4400
|
+
for (i = 0; i < statements.length; i++) {
|
4401
|
+
statement = statements[i];
|
4402
|
+
|
4403
|
+
this.specializeStatement(statement, buffer);
|
4404
|
+
}
|
4405
|
+
};
|
4406
|
+
|
4407
|
+
RawInlineBlock.prototype.specializeStatement = function (statement, buffer) {
|
4408
|
+
if (_wireFormat.Statements.isBlock(statement)) {
|
4409
|
+
buffer.push(this.specializeBlock(statement));
|
4410
|
+
} else if (_wireFormat.Statements.isComponent(statement)) {
|
4411
|
+
buffer.push.apply(buffer, this.specializeComponent(statement));
|
4412
|
+
} else {
|
4413
|
+
buffer.push(statement);
|
4405
4414
|
}
|
4406
|
-
return new InlineBlock(buffer, this.table);
|
4407
4415
|
};
|
4408
4416
|
|
4409
4417
|
RawInlineBlock.prototype.specializeBlock = function (block$$1) {
|
@@ -4421,7 +4429,7 @@ enifed('@glimmer/runtime', ['exports', 'ember-babel', '@glimmer/util', '@glimmer
|
|
4421
4429
|
component = sexp[2],
|
4422
4430
|
child,
|
4423
4431
|
attrs,
|
4424
|
-
|
4432
|
+
buff;
|
4425
4433
|
|
4426
4434
|
if (this.env.hasComponentDefinition(tag, this.table)) {
|
4427
4435
|
child = this.child(component);
|
@@ -4429,14 +4437,14 @@ enifed('@glimmer/runtime', ['exports', 'ember-babel', '@glimmer/util', '@glimmer
|
|
4429
4437
|
|
4430
4438
|
return [[Ops$2.ScannedComponent, tag, attrs, component.args, child]];
|
4431
4439
|
} else {
|
4432
|
-
|
4440
|
+
buff = [];
|
4433
4441
|
|
4434
|
-
|
4435
|
-
|
4436
|
-
|
4437
|
-
|
4438
|
-
|
4439
|
-
return
|
4442
|
+
buff.push([Ops$2.OpenElement, tag, []]);
|
4443
|
+
this.specializeStatements(component.attrs, buff);
|
4444
|
+
buff.push([Ops$2.FlushElement]);
|
4445
|
+
this.specializeStatements(component.statements, buff);
|
4446
|
+
buff.push([Ops$2.CloseElement]);
|
4447
|
+
return buff;
|
4440
4448
|
}
|
4441
4449
|
};
|
4442
4450
|
|
@@ -6415,7 +6423,6 @@ enifed('@glimmer/runtime', ['exports', 'ember-babel', '@glimmer/util', '@glimmer
|
|
6415
6423
|
};
|
6416
6424
|
|
6417
6425
|
Environment.prototype.begin = function () {
|
6418
|
-
(0, _util.assert)(!this._transaction, 'Cannot start a nested transaction');
|
6419
6426
|
this._transaction = new Transaction();
|
6420
6427
|
};
|
6421
6428
|
|
@@ -9742,12 +9749,12 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
9742
9749
|
|
9743
9750
|
Container.prototype = {
|
9744
9751
|
lookup: function (fullName, options) {
|
9745
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName));
|
9752
|
+
false && !this.registry.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName));
|
9746
9753
|
|
9747
9754
|
return lookup(this, this.registry.normalize(fullName), options);
|
9748
9755
|
},
|
9749
9756
|
lookupFactory: function (fullName, options) {
|
9750
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName));
|
9757
|
+
false && !this.registry.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName));
|
9751
9758
|
false && !false && (0, _emberDebug.deprecate)('Using "_lookupFactory" is deprecated. Please use container.factoryFor instead.', false, { id: 'container-lookupFactory', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_migrating-from-_lookupfactory-to-factoryfor' });
|
9752
9759
|
|
9753
9760
|
return deprecatedFactoryFor(this, this.registry.normalize(fullName), options);
|
@@ -9773,7 +9780,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
9773
9780
|
|
9774
9781
|
var normalizedName = this.registry.normalize(fullName);
|
9775
9782
|
|
9776
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(normalizedName));
|
9783
|
+
false && !this.registry.validateFullName(normalizedName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(normalizedName));
|
9777
9784
|
|
9778
9785
|
if (options.source) {
|
9779
9786
|
normalizedName = this.registry.expandLocalLookup(fullName, options);
|
@@ -10299,7 +10306,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10299
10306
|
},
|
10300
10307
|
register: function (fullName, factory) {
|
10301
10308
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
10302
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10309
|
+
false && !this.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10303
10310
|
|
10304
10311
|
if (factory === undefined) {
|
10305
10312
|
throw new TypeError('Attempting to register an unknown factory: \'' + fullName + '\'');
|
@@ -10316,7 +10323,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10316
10323
|
this._options[normalizedName] = options;
|
10317
10324
|
},
|
10318
10325
|
unregister: function (fullName) {
|
10319
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10326
|
+
false && !this.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10320
10327
|
|
10321
10328
|
var normalizedName = this.normalize(fullName);
|
10322
10329
|
|
@@ -10328,7 +10335,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10328
10335
|
delete this._options[normalizedName];
|
10329
10336
|
},
|
10330
10337
|
resolve: function (fullName, options) {
|
10331
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10338
|
+
false && !this.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10332
10339
|
|
10333
10340
|
var factory = resolve(this, this.normalize(fullName), options),
|
10334
10341
|
_fallback;
|
@@ -10419,7 +10426,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10419
10426
|
}
|
10420
10427
|
},
|
10421
10428
|
typeInjection: function (type, property, fullName) {
|
10422
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10429
|
+
false && !this.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10423
10430
|
|
10424
10431
|
var fullNameType = fullName.split(':')[0];
|
10425
10432
|
if (fullNameType === type) {
|
@@ -10441,7 +10448,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10441
10448
|
return this.typeInjection(fullName, property, normalizedInjectionName);
|
10442
10449
|
}
|
10443
10450
|
|
10444
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10451
|
+
false && !this.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10445
10452
|
|
10446
10453
|
var normalizedName = this.normalize(fullName);
|
10447
10454
|
|
@@ -10527,7 +10534,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10527
10534
|
for (i = 0; i < injections.length; i++) {
|
10528
10535
|
fullName = injections[i].fullName;
|
10529
10536
|
|
10530
|
-
false && (0, _emberDebug.assert)('Attempting to inject an unknown injection: \'' + fullName + '\'', this.has(fullName));
|
10537
|
+
false && !this.has(fullName) && (0, _emberDebug.assert)('Attempting to inject an unknown injection: \'' + fullName + '\'', this.has(fullName));
|
10531
10538
|
}
|
10532
10539
|
},
|
10533
10540
|
normalizeInjectionsHash: function (hash) {
|
@@ -10535,7 +10542,7 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10535
10542
|
|
10536
10543
|
for (var key in hash) {
|
10537
10544
|
if (hash.hasOwnProperty(key)) {
|
10538
|
-
false && (0, _emberDebug.assert)('Expected a proper full name, given \'' + hash[key] + '\'', this.validateFullName(hash[key]));
|
10545
|
+
false && !this.validateFullName(hash[key]) && (0, _emberDebug.assert)('Expected a proper full name, given \'' + hash[key] + '\'', this.validateFullName(hash[key]));
|
10539
10546
|
|
10540
10547
|
injections.push({
|
10541
10548
|
property: key,
|
@@ -10606,9 +10613,9 @@ enifed('container', ['exports', 'ember-utils', 'ember-debug', 'ember-environment
|
|
10606
10613
|
var normalizedFullName, normalizedSource;
|
10607
10614
|
|
10608
10615
|
if (this.resolver && this.resolver.expandLocalLookup) {
|
10609
|
-
false && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10610
|
-
false && (0, _emberDebug.assert)('options.source must be provided to expandLocalLookup', options && options.source);
|
10611
|
-
false && (0, _emberDebug.assert)('options.source must be a proper full name', this.validateFullName(options.source));
|
10616
|
+
false && !this.validateFullName(fullName) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName));
|
10617
|
+
false && !(options && options.source) && (0, _emberDebug.assert)('options.source must be provided to expandLocalLookup', options && options.source);
|
10618
|
+
false && !this.validateFullName(options.source) && (0, _emberDebug.assert)('options.source must be a proper full name', this.validateFullName(options.source));
|
10612
10619
|
|
10613
10620
|
normalizedFullName = this.normalize(fullName);
|
10614
10621
|
normalizedSource = this.normalize(options.source);
|
@@ -11772,13 +11779,13 @@ enifed('ember-application/system/application', ['exports', 'ember-babel', 'ember
|
|
11772
11779
|
// Continues to `didBecomeReady`
|
11773
11780
|
},
|
11774
11781
|
deferReadiness: function () {
|
11775
|
-
false && (0, _emberDebug.assert)('You must call deferReadiness on an instance of Ember.Application', this instanceof Application);
|
11776
|
-
false && (0, _emberDebug.assert)('You cannot defer readiness since the `ready()` hook has already been called.', this._readinessDeferrals > 0);
|
11782
|
+
false && !(this instanceof Application) && (0, _emberDebug.assert)('You must call deferReadiness on an instance of Ember.Application', this instanceof Application);
|
11783
|
+
false && !(this._readinessDeferrals > 0) && (0, _emberDebug.assert)('You cannot defer readiness since the `ready()` hook has already been called.', this._readinessDeferrals > 0);
|
11777
11784
|
|
11778
11785
|
this._readinessDeferrals++;
|
11779
11786
|
},
|
11780
11787
|
advanceReadiness: function () {
|
11781
|
-
false && (0, _emberDebug.assert)('You must call advanceReadiness on an instance of Ember.Application', this instanceof Application);
|
11788
|
+
false && !(this instanceof Application) && (0, _emberDebug.assert)('You must call advanceReadiness on an instance of Ember.Application', this instanceof Application);
|
11782
11789
|
|
11783
11790
|
this._readinessDeferrals--;
|
11784
11791
|
|
@@ -11826,7 +11833,7 @@ enifed('ember-application/system/application', ['exports', 'ember-babel', 'ember
|
|
11826
11833
|
}
|
11827
11834
|
},
|
11828
11835
|
reset: function () {
|
11829
|
-
false && (0, _emberDebug.assert)('Calling reset() on instances of `Ember.Application` is not\n supported when globals mode is disabled; call `visit()` to\n create new `Ember.ApplicationInstance`s and dispose them\n via their `destroy()` method instead.', this._globalsMode && this.autoboot);
|
11836
|
+
false && !(this._globalsMode && this.autoboot) && (0, _emberDebug.assert)('Calling reset() on instances of `Ember.Application` is not\n supported when globals mode is disabled; call `visit()` to\n create new `Ember.ApplicationInstance`s and dispose them\n via their `destroy()` method instead.', this._globalsMode && this.autoboot);
|
11830
11837
|
|
11831
11838
|
var instance = this.__deprecatedInstance__;
|
11832
11839
|
|
@@ -12045,7 +12052,7 @@ enifed('ember-application/system/engine-instance', ['exports', 'ember-babel', 'e
|
|
12045
12052
|
return this;
|
12046
12053
|
}
|
12047
12054
|
|
12048
|
-
false && (0, _emberDebug.assert)('An engine instance\'s parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.', (0, _engineParent.getEngineParent)(this));
|
12055
|
+
false && !(0, _engineParent.getEngineParent)(this) && (0, _emberDebug.assert)('An engine instance\'s parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.', (0, _engineParent.getEngineParent)(this));
|
12049
12056
|
|
12050
12057
|
this.cloneParentDependencies();
|
12051
12058
|
|
@@ -12233,7 +12240,7 @@ enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-util
|
|
12233
12240
|
var _this = this;
|
12234
12241
|
|
12235
12242
|
this._runInitializer('initializers', function (name, initializer) {
|
12236
|
-
false && (0, _emberDebug.assert)('No application initializer named \'' + name + '\'', !!initializer);
|
12243
|
+
false && !!!initializer && (0, _emberDebug.assert)('No application initializer named \'' + name + '\'', !!initializer);
|
12237
12244
|
|
12238
12245
|
if (initializer.initialize.length === 2) {
|
12239
12246
|
false && !false && (0, _emberDebug.deprecate)('The `initialize` method for Application initializer \'' + name + '\' should take only one argument - `App`, an instance of an `Application`.', false, {
|
@@ -12250,7 +12257,7 @@ enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-util
|
|
12250
12257
|
},
|
12251
12258
|
runInstanceInitializers: function (instance) {
|
12252
12259
|
this._runInitializer('instanceInitializers', function (name, initializer) {
|
12253
|
-
false && (0, _emberDebug.assert)('No instance initializer named \'' + name + '\'', !!initializer);
|
12260
|
+
false && !!!initializer && (0, _emberDebug.assert)('No instance initializer named \'' + name + '\'', !!initializer);
|
12254
12261
|
|
12255
12262
|
initializer.initialize(instance);
|
12256
12263
|
});
|
@@ -12497,9 +12504,9 @@ enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-util
|
|
12497
12504
|
this.reopenClass(attrs);
|
12498
12505
|
}
|
12499
12506
|
|
12500
|
-
false && (0, _emberDebug.assert)('The ' + humanName + ' \'' + initializer.name + '\' has already been registered', !this[bucketName][initializer.name]);
|
12501
|
-
false && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without an initialize function', (0, _emberUtils.canInvoke)(initializer, 'initialize'));
|
12502
|
-
false && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without a name property', initializer.name !== undefined);
|
12507
|
+
false && !!this[bucketName][initializer.name] && (0, _emberDebug.assert)('The ' + humanName + ' \'' + initializer.name + '\' has already been registered', !this[bucketName][initializer.name]);
|
12508
|
+
false && !(0, _emberUtils.canInvoke)(initializer, 'initialize') && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without an initialize function', (0, _emberUtils.canInvoke)(initializer, 'initialize'));
|
12509
|
+
false && !(initializer.name !== undefined) && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without a name property', initializer.name !== undefined);
|
12503
12510
|
|
12504
12511
|
this[bucketName][initializer.name] = initializer;
|
12505
12512
|
};
|
@@ -12660,7 +12667,7 @@ enifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-me
|
|
12660
12667
|
name = _fullName$split[1],
|
12661
12668
|
result;
|
12662
12669
|
|
12663
|
-
false && (0, _emberDebug.assert)('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2);
|
12670
|
+
false && !(fullName.split(':').length === 2) && (0, _emberDebug.assert)('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2);
|
12664
12671
|
|
12665
12672
|
if (type !== 'template') {
|
12666
12673
|
result = name;
|
@@ -12750,7 +12757,7 @@ enifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-me
|
|
12750
12757
|
|
12751
12758
|
root = _emberRuntime.Namespace.byName(namespaceName);
|
12752
12759
|
|
12753
|
-
false && (0, _emberDebug.assert)('You are looking for a ' + name + ' ' + type + ' in the ' + namespaceName + ' namespace, but the namespace could not be found', root);
|
12760
|
+
false && !root && (0, _emberDebug.assert)('You are looking for a ' + name + ' ' + type + ' in the ' + namespaceName + ' namespace, but the namespace could not be found', root);
|
12754
12761
|
}
|
12755
12762
|
|
12756
12763
|
var resolveMethodName = fullNameWithoutType === 'main' ? 'Main' : _emberRuntime.String.classify(type);
|
@@ -13001,7 +13008,7 @@ enifed('ember-application/utils/validate-type', ['exports', 'ember-debug'], func
|
|
13001
13008
|
var action = validationAttributes[0],
|
13002
13009
|
factoryFlag = validationAttributes[1],
|
13003
13010
|
expectedType = validationAttributes[2];
|
13004
|
-
false && (0, _emberDebug.assert)('Expected ' + parsedName.fullName + ' to resolve to an ' + expectedType + ' but ' + ('instead it was ' + resolvedType + '.'), !!resolvedType[factoryFlag]);
|
13011
|
+
false && !!!resolvedType[factoryFlag] && (0, _emberDebug.assert)('Expected ' + parsedName.fullName + ' to resolve to an ' + expectedType + ' but ' + ('instead it was ' + resolvedType + '.'), !!resolvedType[factoryFlag]);
|
13005
13012
|
};
|
13006
13013
|
|
13007
13014
|
var VALIDATED_TYPES = {
|
@@ -13210,12 +13217,15 @@ enifed('ember-console', ['exports', 'ember-environment'], function (exports, _em
|
|
13210
13217
|
|
13211
13218
|
exports.default = index;
|
13212
13219
|
});
|
13213
|
-
enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console', 'ember-environment', 'ember-debug/handlers'], function (exports
|
13220
|
+
enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console', 'ember-environment', 'ember-debug/handlers'], function (exports) {
|
13214
13221
|
'use strict';
|
13215
13222
|
|
13216
|
-
exports.missingOptionsUntilDeprecation = exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = undefined;
|
13217
|
-
|
13218
|
-
|
13223
|
+
exports.missingOptionsUntilDeprecation = exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = exports.registerHandler = undefined;
|
13224
|
+
|
13225
|
+
/**
|
13226
|
+
@module ember
|
13227
|
+
@submodule ember-debug
|
13228
|
+
*/
|
13219
13229
|
|
13220
13230
|
/**
|
13221
13231
|
Allows for runtime registration of handler functions that override the default deprecation behavior.
|
@@ -13254,149 +13264,11 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
|
|
13254
13264
|
*/
|
13255
13265
|
/*global __fail__*/
|
13256
13266
|
|
13257
|
-
|
13258
|
-
|
13259
|
-
|
13260
|
-
|
13261
|
-
|
13262
|
-
var message = _message;
|
13263
|
-
|
13264
|
-
if (options && options.id) {
|
13265
|
-
message = message + (' [deprecation id: ' + options.id + ']');
|
13266
|
-
}
|
13267
|
-
|
13268
|
-
if (options && options.url) {
|
13269
|
-
message += ' See ' + options.url + ' for more details.';
|
13270
|
-
}
|
13271
|
-
|
13272
|
-
return message;
|
13273
|
-
}
|
13274
|
-
|
13275
|
-
registerHandler(function (message, options) {
|
13276
|
-
var updatedMessage = formatMessage(message, options);
|
13277
|
-
|
13278
|
-
_emberConsole.default.warn('DEPRECATION: ' + updatedMessage);
|
13279
|
-
});
|
13280
|
-
|
13281
|
-
var captureErrorForStack = void 0;
|
13282
|
-
|
13283
|
-
if (new Error().stack) {
|
13284
|
-
captureErrorForStack = function () {
|
13285
|
-
return new Error();
|
13286
|
-
};
|
13287
|
-
} else {
|
13288
|
-
captureErrorForStack = function () {
|
13289
|
-
try {
|
13290
|
-
__fail__.fail();
|
13291
|
-
} catch (e) {
|
13292
|
-
return e;
|
13293
|
-
}
|
13294
|
-
};
|
13295
|
-
}
|
13296
|
-
|
13297
|
-
registerHandler(function (message, options, next) {
|
13298
|
-
var stackStr, error, stack, updatedMessage;
|
13299
|
-
|
13300
|
-
if (_emberEnvironment.ENV.LOG_STACKTRACE_ON_DEPRECATION) {
|
13301
|
-
stackStr = '';
|
13302
|
-
error = captureErrorForStack();
|
13303
|
-
stack = void 0;
|
13304
|
-
|
13305
|
-
|
13306
|
-
if (error.stack) {
|
13307
|
-
if (error['arguments']) {
|
13308
|
-
// Chrome
|
13309
|
-
stack = error.stack.replace(/^\s+at\s+/gm, '').replace(/^([^\(]+?)([\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm, '{anonymous}($1)').split('\n');
|
13310
|
-
stack.shift();
|
13311
|
-
} else {
|
13312
|
-
// Firefox
|
13313
|
-
stack = error.stack.replace(/(?:\n@:0)?\s+$/m, '').replace(/^\(/gm, '{anonymous}(').split('\n');
|
13314
|
-
}
|
13315
|
-
|
13316
|
-
stackStr = '\n ' + stack.slice(2).join('\n ');
|
13317
|
-
}
|
13318
|
-
|
13319
|
-
updatedMessage = formatMessage(message, options);
|
13320
|
-
|
13321
|
-
|
13322
|
-
_emberConsole.default.warn('DEPRECATION: ' + updatedMessage + stackStr);
|
13323
|
-
} else {
|
13324
|
-
next.apply(undefined, arguments);
|
13325
|
-
}
|
13326
|
-
});
|
13327
|
-
|
13328
|
-
registerHandler(function (message, options, next) {
|
13329
|
-
var updatedMessage;
|
13330
|
-
|
13331
|
-
if (_emberEnvironment.ENV.RAISE_ON_DEPRECATION) {
|
13332
|
-
updatedMessage = formatMessage(message);
|
13333
|
-
|
13334
|
-
|
13335
|
-
throw new _error.default(updatedMessage);
|
13336
|
-
} else {
|
13337
|
-
next.apply(undefined, arguments);
|
13338
|
-
}
|
13339
|
-
});
|
13340
|
-
|
13341
|
-
var missingOptionsDeprecation = exports.missingOptionsDeprecation = 'When calling `Ember.deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';
|
13342
|
-
var missingOptionsIdDeprecation = exports.missingOptionsIdDeprecation = 'When calling `Ember.deprecate` you must provide `id` in options.';
|
13343
|
-
var missingOptionsUntilDeprecation = exports.missingOptionsUntilDeprecation = 'When calling `Ember.deprecate` you must provide `until` in options.';
|
13344
|
-
|
13345
|
-
/**
|
13346
|
-
@module ember
|
13347
|
-
@submodule ember-debug
|
13348
|
-
*/
|
13349
|
-
|
13350
|
-
/**
|
13351
|
-
Display a deprecation warning with the provided message and a stack trace
|
13352
|
-
(Chrome and Firefox only).
|
13353
|
-
|
13354
|
-
* In a production build, this method is defined as an empty function (NOP).
|
13355
|
-
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13356
|
-
|
13357
|
-
@method deprecate
|
13358
|
-
@param {String} message A description of the deprecation.
|
13359
|
-
@param {Boolean} test A boolean. If falsy, the deprecation will be displayed.
|
13360
|
-
@param {Object} options
|
13361
|
-
@param {String} options.id A unique id for this deprecation. The id can be
|
13362
|
-
used by Ember debugging tools to change the behavior (raise, log or silence)
|
13363
|
-
for that specific deprecation. The id should be namespaced by dots, e.g.
|
13364
|
-
"view.helper.select".
|
13365
|
-
@param {string} options.until The version of Ember when this deprecation
|
13366
|
-
warning will be removed.
|
13367
|
-
@param {String} [options.url] An optional url to the transition guide on the
|
13368
|
-
emberjs.com website.
|
13369
|
-
@for Ember
|
13370
|
-
@public
|
13371
|
-
@since 1.0.0
|
13372
|
-
*/
|
13373
|
-
function deprecate(message, test, options) {
|
13374
|
-
if (!options || !options.id && !options.until) {
|
13375
|
-
deprecate(missingOptionsDeprecation, false, {
|
13376
|
-
id: 'ember-debug.deprecate-options-missing',
|
13377
|
-
until: '3.0.0',
|
13378
|
-
url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
|
13379
|
-
});
|
13380
|
-
}
|
13381
|
-
|
13382
|
-
if (options && !options.id) {
|
13383
|
-
deprecate(missingOptionsIdDeprecation, false, {
|
13384
|
-
id: 'ember-debug.deprecate-id-missing',
|
13385
|
-
until: '3.0.0',
|
13386
|
-
url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
|
13387
|
-
});
|
13388
|
-
}
|
13389
|
-
|
13390
|
-
if (options && !options.until) {
|
13391
|
-
deprecate(missingOptionsUntilDeprecation, options && options.until, {
|
13392
|
-
id: 'ember-debug.deprecate-until-missing',
|
13393
|
-
until: '3.0.0',
|
13394
|
-
url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
|
13395
|
-
});
|
13396
|
-
}
|
13397
|
-
|
13398
|
-
_handlers.invoke.apply(undefined, ['deprecate'].concat(Array.prototype.slice.call(arguments)));
|
13399
|
-
}
|
13267
|
+
exports.default = void 0;
|
13268
|
+
exports.registerHandler = function () {};
|
13269
|
+
exports.missingOptionsDeprecation = void 0;
|
13270
|
+
exports.missingOptionsIdDeprecation = void 0;
|
13271
|
+
exports.missingOptionsUntilDeprecation = void 0;
|
13400
13272
|
});
|
13401
13273
|
enifed("ember-debug/error", ["exports", "ember-babel"], function (exports, _emberBabel) {
|
13402
13274
|
"use strict";
|
@@ -13505,33 +13377,19 @@ enifed('ember-debug/features', ['exports', 'ember-environment', 'ember/features'
|
|
13505
13377
|
};
|
13506
13378
|
var FEATURES = _features.FEATURES;
|
13507
13379
|
});
|
13508
|
-
enifed(
|
13509
|
-
|
13510
|
-
|
13511
|
-
exports.registerHandler = function (type, callback) {
|
13512
|
-
var nextHandler = HANDLERS[type] || function () {};
|
13380
|
+
enifed('ember-debug/handlers', ['exports'], function (exports) {
|
13381
|
+
'use strict';
|
13513
13382
|
|
13514
|
-
|
13515
|
-
callback(message, options, nextHandler);
|
13516
|
-
};
|
13517
|
-
};
|
13518
|
-
exports.invoke = function (type, message, test, options) {
|
13519
|
-
if (test) {
|
13520
|
-
return;
|
13521
|
-
}
|
13383
|
+
exports.HANDLERS = {};
|
13522
13384
|
|
13523
|
-
var handlerForType = HANDLERS[type];
|
13524
13385
|
|
13525
|
-
|
13526
|
-
|
13527
|
-
}
|
13528
|
-
};
|
13529
|
-
var HANDLERS = exports.HANDLERS = {};
|
13386
|
+
exports.registerHandler = function () {};
|
13387
|
+
exports.invoke = function () {};
|
13530
13388
|
});
|
13531
13389
|
enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/deprecate', 'ember-debug/features', 'ember-debug/error', 'ember-debug/testing', 'ember-environment', 'ember-console', 'ember/features'], function (exports, _warn2, _deprecate2, _features, _error, _testing, _emberEnvironment, _emberConsole, _features2) {
|
13532
13390
|
'use strict';
|
13533
13391
|
|
13534
|
-
exports.
|
13392
|
+
exports._warnIfUsingStrippedFeatureFlags = exports.getDebugFunction = exports.setDebugFunction = exports.deprecateFunc = exports.runInDebug = exports.debugFreeze = exports.debugSeal = exports.deprecate = exports.debug = exports.warn = exports.info = exports.assert = exports.setTesting = exports.isTesting = exports.Error = exports.isFeatureEnabled = exports.registerDeprecationHandler = exports.registerWarnHandler = undefined;
|
13535
13393
|
Object.defineProperty(exports, 'registerWarnHandler', {
|
13536
13394
|
enumerable: true,
|
13537
13395
|
get: function () {
|
@@ -13568,302 +13426,26 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
|
|
13568
13426
|
return _testing.setTesting;
|
13569
13427
|
}
|
13570
13428
|
});
|
13571
|
-
exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;
|
13572
|
-
exports.getDebugFunction = function (name) {
|
13573
|
-
return debugFunctions[name];
|
13574
|
-
};
|
13575
|
-
exports.setDebugFunction = setDebugFunction;
|
13576
|
-
exports.assert = function () {
|
13577
|
-
return debugFunctions.assert.apply(undefined, arguments);
|
13578
|
-
};
|
13579
|
-
exports.info = function () {
|
13580
|
-
return debugFunctions.info.apply(undefined, arguments);
|
13581
|
-
};
|
13582
|
-
exports.warn = warn;
|
13583
|
-
exports.debug = debug;
|
13584
|
-
exports.deprecate = deprecate;
|
13585
|
-
exports.deprecateFunc = function () {
|
13586
|
-
return debugFunctions.deprecateFunc.apply(undefined, arguments);
|
13587
|
-
};
|
13588
|
-
exports.runInDebug = function () {
|
13589
|
-
return debugFunctions.runInDebug.apply(undefined, arguments);
|
13590
|
-
};
|
13591
|
-
exports.debugSeal = function () {
|
13592
|
-
return debugFunctions.debugSeal.apply(undefined, arguments);
|
13593
|
-
};
|
13594
|
-
exports.debugFreeze = function () {
|
13595
|
-
return debugFunctions.debugFreeze.apply(undefined, arguments);
|
13596
|
-
};
|
13597
13429
|
var DEFAULT_FEATURES = _features2.DEFAULT_FEATURES,
|
13598
|
-
FEATURES = _features2.FEATURES
|
13599
|
-
featuresWereStripped,
|
13600
|
-
isFirefox,
|
13601
|
-
isChrome;
|
13602
|
-
var debugFunctions = exports.debugFunctions = {
|
13603
|
-
assert: function () {},
|
13604
|
-
info: function () {},
|
13605
|
-
warn: function () {},
|
13606
|
-
debug: function () {},
|
13607
|
-
deprecate: function () {},
|
13608
|
-
deprecateFunc: function () {
|
13609
|
-
var _ref;
|
13430
|
+
FEATURES = _features2.FEATURES;
|
13610
13431
|
|
13611
|
-
|
13612
|
-
},
|
13613
|
-
debugSeal: function () {},
|
13614
|
-
debugFreeze: function () {}
|
13615
|
-
};
|
13432
|
+
// These are the default production build versions:
|
13616
13433
|
|
13617
|
-
/**
|
13618
|
-
@module ember
|
13619
|
-
@submodule ember-debug
|
13620
|
-
*/
|
13621
13434
|
|
13622
|
-
|
13623
|
-
|
13624
|
-
|
13625
|
-
|
13626
|
-
|
13627
|
-
|
13628
|
-
|
13629
|
-
|
13630
|
-
|
13631
|
-
|
13632
|
-
|
13633
|
-
|
13634
|
-
|
13635
|
-
|
13636
|
-
|
13637
|
-
// Fail unconditionally
|
13638
|
-
Ember.assert('This code path should never be run');
|
13639
|
-
```
|
13640
|
-
|
13641
|
-
@method assert
|
13642
|
-
@param {String} desc A description of the assertion. This will become
|
13643
|
-
the text of the Error thrown if the assertion fails.
|
13644
|
-
@param {Boolean} test Must be truthy for the assertion to pass. If
|
13645
|
-
falsy, an exception will be thrown.
|
13646
|
-
@public
|
13647
|
-
@since 1.0.0
|
13648
|
-
*/
|
13649
|
-
setDebugFunction('assert', function (desc, test) {
|
13650
|
-
if (!test) {
|
13651
|
-
throw new _error.default('Assertion Failed: ' + desc);
|
13652
|
-
}
|
13653
|
-
});
|
13654
|
-
|
13655
|
-
/**
|
13656
|
-
Display a debug notice.
|
13657
|
-
|
13658
|
-
* In a production build, this method is defined as an empty function (NOP).
|
13659
|
-
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13660
|
-
|
13661
|
-
```javascript
|
13662
|
-
Ember.debug('I\'m a debug notice!');
|
13663
|
-
```
|
13664
|
-
|
13665
|
-
@method debug
|
13666
|
-
@param {String} message A debug message to display.
|
13667
|
-
@public
|
13668
|
-
*/
|
13669
|
-
setDebugFunction('debug', function (message) {
|
13670
|
-
_emberConsole.default.debug('DEBUG: ' + message);
|
13671
|
-
});
|
13672
|
-
|
13673
|
-
/**
|
13674
|
-
Display an info notice.
|
13675
|
-
|
13676
|
-
* In a production build, this method is defined as an empty function (NOP).
|
13677
|
-
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13678
|
-
|
13679
|
-
@method info
|
13680
|
-
@private
|
13681
|
-
*/
|
13682
|
-
setDebugFunction('info', function () {
|
13683
|
-
_emberConsole.default.info.apply(undefined, arguments);
|
13684
|
-
});
|
13685
|
-
|
13686
|
-
/**
|
13687
|
-
Alias an old, deprecated method with its new counterpart.
|
13688
|
-
|
13689
|
-
Display a deprecation warning with the provided message and a stack trace
|
13690
|
-
(Chrome and Firefox only) when the assigned method is called.
|
13691
|
-
|
13692
|
-
* In a production build, this method is defined as an empty function (NOP).
|
13693
|
-
|
13694
|
-
```javascript
|
13695
|
-
Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);
|
13696
|
-
```
|
13697
|
-
|
13698
|
-
@method deprecateFunc
|
13699
|
-
@param {String} message A description of the deprecation.
|
13700
|
-
@param {Object} [options] The options object for Ember.deprecate.
|
13701
|
-
@param {Function} func The new function called to replace its deprecated counterpart.
|
13702
|
-
@return {Function} A new function that wraps the original function with a deprecation warning
|
13703
|
-
@private
|
13704
|
-
*/
|
13705
|
-
setDebugFunction('deprecateFunc', function () {
|
13706
|
-
var _len, args, _key, message, options, func, _message, _func;
|
13707
|
-
|
13708
|
-
for (_len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
13709
|
-
args[_key] = arguments[_key];
|
13710
|
-
}
|
13711
|
-
|
13712
|
-
if (args.length === 3) {
|
13713
|
-
message = args[0], options = args[1], func = args[2];
|
13714
|
-
|
13715
|
-
|
13716
|
-
return function () {
|
13717
|
-
deprecate(message, false, options);
|
13718
|
-
return func.apply(this, arguments);
|
13719
|
-
};
|
13720
|
-
} else {
|
13721
|
-
_message = args[0], _func = args[1];
|
13722
|
-
|
13723
|
-
|
13724
|
-
return function () {
|
13725
|
-
deprecate(_message);
|
13726
|
-
return _func.apply(this, arguments);
|
13727
|
-
};
|
13728
|
-
}
|
13729
|
-
});
|
13730
|
-
|
13731
|
-
/**
|
13732
|
-
Run a function meant for debugging.
|
13733
|
-
|
13734
|
-
* In a production build, this method is defined as an empty function (NOP).
|
13735
|
-
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13736
|
-
|
13737
|
-
```javascript
|
13738
|
-
Ember.runInDebug(() => {
|
13739
|
-
Ember.Component.reopen({
|
13740
|
-
didInsertElement() {
|
13741
|
-
console.log("I'm happy");
|
13742
|
-
}
|
13743
|
-
});
|
13744
|
-
});
|
13745
|
-
```
|
13746
|
-
|
13747
|
-
@method runInDebug
|
13748
|
-
@param {Function} func The function to be executed.
|
13749
|
-
@since 1.5.0
|
13750
|
-
@public
|
13751
|
-
*/
|
13752
|
-
setDebugFunction('runInDebug', function (func) {
|
13753
|
-
func();
|
13754
|
-
});
|
13755
|
-
|
13756
|
-
setDebugFunction('debugSeal', function (obj) {
|
13757
|
-
Object.seal(obj);
|
13758
|
-
});
|
13759
|
-
|
13760
|
-
setDebugFunction('debugFreeze', function (obj) {
|
13761
|
-
Object.freeze(obj);
|
13762
|
-
});
|
13763
|
-
|
13764
|
-
setDebugFunction('deprecate', _deprecate2.default);
|
13765
|
-
|
13766
|
-
setDebugFunction('warn', _warn2.default);
|
13767
|
-
|
13768
|
-
/**
|
13769
|
-
Will call `Ember.warn()` if ENABLE_OPTIONAL_FEATURES or
|
13770
|
-
any specific FEATURES flag is truthy.
|
13771
|
-
|
13772
|
-
This method is called automatically in debug canary builds.
|
13773
|
-
|
13774
|
-
@private
|
13775
|
-
@method _warnIfUsingStrippedFeatureFlags
|
13776
|
-
@return {void}
|
13777
|
-
*/
|
13778
|
-
function _warnIfUsingStrippedFeatureFlags(FEATURES, knownFeatures, featuresWereStripped) {
|
13779
|
-
var keys, i, key;
|
13780
|
-
|
13781
|
-
if (featuresWereStripped) {
|
13782
|
-
warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !_emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES, { id: 'ember-debug.feature-flag-with-features-stripped' });
|
13783
|
-
|
13784
|
-
keys = Object.keys(FEATURES || {});
|
13785
|
-
|
13786
|
-
for (i = 0; i < keys.length; i++) {
|
13787
|
-
key = keys[i];
|
13788
|
-
|
13789
|
-
if (key === 'isEnabled' || !(key in knownFeatures)) {
|
13790
|
-
continue;
|
13791
|
-
}
|
13792
|
-
|
13793
|
-
warn('FEATURE["' + key + '"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key], { id: 'ember-debug.feature-flag-with-features-stripped' });
|
13794
|
-
}
|
13795
|
-
}
|
13796
|
-
}
|
13797
|
-
|
13798
|
-
if (!(0, _testing.isTesting)()) {
|
13799
|
-
// Complain if they're using FEATURE flags in builds other than canary
|
13800
|
-
FEATURES['features-stripped-test'] = true;
|
13801
|
-
featuresWereStripped = true;
|
13802
|
-
|
13803
|
-
|
13804
|
-
if ((0, _features.default)('features-stripped-test')) {
|
13805
|
-
featuresWereStripped = false;
|
13806
|
-
}
|
13807
|
-
|
13808
|
-
delete FEATURES['features-stripped-test'];
|
13809
|
-
_warnIfUsingStrippedFeatureFlags(_emberEnvironment.ENV.FEATURES, DEFAULT_FEATURES, featuresWereStripped);
|
13810
|
-
|
13811
|
-
// Inform the developer about the Ember Inspector if not installed.
|
13812
|
-
isFirefox = _emberEnvironment.environment.isFirefox;
|
13813
|
-
isChrome = _emberEnvironment.environment.isChrome;
|
13814
|
-
|
13815
|
-
|
13816
|
-
if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) {
|
13817
|
-
window.addEventListener('load', function () {
|
13818
|
-
var downloadURL;
|
13819
|
-
|
13820
|
-
if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {
|
13821
|
-
downloadURL = void 0;
|
13822
|
-
|
13823
|
-
|
13824
|
-
if (isChrome) {
|
13825
|
-
downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';
|
13826
|
-
} else if (isFirefox) {
|
13827
|
-
downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';
|
13828
|
-
}
|
13829
|
-
|
13830
|
-
debug('For more advanced debugging, install the Ember Inspector from ' + downloadURL);
|
13831
|
-
}
|
13832
|
-
}, false);
|
13833
|
-
}
|
13834
|
-
}
|
13835
|
-
|
13836
|
-
/*
|
13837
|
-
We are transitioning away from `ember.js` to `ember.debug.js` to make
|
13838
|
-
it much clearer that it is only for local development purposes.
|
13839
|
-
|
13840
|
-
This flag value is changed by the tooling (by a simple string replacement)
|
13841
|
-
so that if `ember.js` (which must be output for backwards compat reasons) is
|
13842
|
-
used a nice helpful warning message will be printed out.
|
13843
|
-
*/
|
13844
|
-
var runningNonEmberDebugJS = exports.runningNonEmberDebugJS = false;
|
13845
|
-
if (runningNonEmberDebugJS) {
|
13846
|
-
warn('Please use `ember.debug.js` instead of `ember.js` for development and debugging.');
|
13847
|
-
}
|
13848
|
-
|
13849
|
-
function setDebugFunction(name, fn) {
|
13850
|
-
debugFunctions[name] = fn;
|
13851
|
-
}
|
13852
|
-
|
13853
|
-
function warn() {
|
13854
|
-
return debugFunctions.warn.apply(undefined, arguments);
|
13855
|
-
}
|
13856
|
-
|
13857
|
-
function debug() {
|
13858
|
-
return debugFunctions.debug.apply(undefined, arguments);
|
13859
|
-
}
|
13860
|
-
|
13861
|
-
function deprecate() {
|
13862
|
-
return debugFunctions.deprecate.apply(undefined, arguments);
|
13863
|
-
}
|
13864
|
-
});
|
13865
|
-
enifed("ember-debug/run-in-debug", [], function () {
|
13866
|
-
"use strict";
|
13435
|
+
exports.assert = function () {};
|
13436
|
+
exports.info = function () {};
|
13437
|
+
exports.warn = function () {};
|
13438
|
+
exports.debug = function () {};
|
13439
|
+
exports.deprecate = function () {};
|
13440
|
+
exports.debugSeal = function () {};
|
13441
|
+
exports.debugFreeze = function () {};
|
13442
|
+
exports.runInDebug = function () {};
|
13443
|
+
exports.deprecateFunc = function () {
|
13444
|
+
return arguments[arguments.length - 1];
|
13445
|
+
};
|
13446
|
+
exports.setDebugFunction = function () {};
|
13447
|
+
exports.getDebugFunction = function () {};
|
13448
|
+
exports._warnIfUsingStrippedFeatureFlags = void 0;
|
13867
13449
|
});
|
13868
13450
|
enifed("ember-debug/testing", ["exports"], function (exports) {
|
13869
13451
|
"use strict";
|
@@ -13876,101 +13458,20 @@ enifed("ember-debug/testing", ["exports"], function (exports) {
|
|
13876
13458
|
};
|
13877
13459
|
var testing = false;
|
13878
13460
|
});
|
13879
|
-
enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate', 'ember-debug/handlers'], function (exports
|
13461
|
+
enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate', 'ember-debug/handlers'], function (exports) {
|
13880
13462
|
'use strict';
|
13881
13463
|
|
13882
|
-
exports.missingOptionsIdDeprecation = exports.
|
13883
|
-
exports.registerHandler = registerHandler;
|
13884
|
-
exports.default =
|
13464
|
+
exports.missingOptionsDeprecation = exports.missingOptionsIdDeprecation = exports.registerHandler = undefined;
|
13885
13465
|
|
13886
13466
|
/**
|
13887
13467
|
@module ember
|
13888
13468
|
@submodule ember-debug
|
13889
13469
|
*/
|
13890
13470
|
|
13891
|
-
|
13892
|
-
|
13893
|
-
|
13894
|
-
|
13895
|
-
Uses of this method in Ember itself are stripped from the ember.prod.js build.
|
13896
|
-
|
13897
|
-
@method warn
|
13898
|
-
@param {String} message A warning to display.
|
13899
|
-
@param {Boolean} test An optional boolean. If falsy, the warning
|
13900
|
-
will be displayed.
|
13901
|
-
@param {Object} options An object that can be used to pass a unique
|
13902
|
-
`id` for this warning. The `id` can be used by Ember debugging tools
|
13903
|
-
to change the behavior (raise, log, or silence) for that specific warning.
|
13904
|
-
The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped"
|
13905
|
-
@for Ember
|
13906
|
-
@public
|
13907
|
-
@since 1.0.0
|
13908
|
-
*/
|
13909
|
-
function (message, test, options) {
|
13910
|
-
if (arguments.length === 2 && typeof test === 'object') {
|
13911
|
-
options = test;
|
13912
|
-
test = false;
|
13913
|
-
}
|
13914
|
-
if (!options) {
|
13915
|
-
(0, _deprecate.default)(missingOptionsDeprecation, false, {
|
13916
|
-
id: 'ember-debug.warn-options-missing',
|
13917
|
-
until: '3.0.0',
|
13918
|
-
url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
|
13919
|
-
});
|
13920
|
-
}
|
13921
|
-
|
13922
|
-
if (options && !options.id) {
|
13923
|
-
(0, _deprecate.default)(missingOptionsIdDeprecation, false, {
|
13924
|
-
id: 'ember-debug.warn-id-missing',
|
13925
|
-
until: '3.0.0',
|
13926
|
-
url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
|
13927
|
-
});
|
13928
|
-
}
|
13929
|
-
|
13930
|
-
(0, _handlers.invoke)('warn', message, test, options);
|
13931
|
-
};
|
13932
|
-
|
13933
|
-
/**
|
13934
|
-
Allows for runtime registration of handler functions that override the default warning behavior.
|
13935
|
-
Warnings are invoked by calls made to [Ember.warn](http://emberjs.com/api/classes/Ember.html#method_warn).
|
13936
|
-
The following example demonstrates its usage by registering a handler that does nothing overriding Ember's
|
13937
|
-
default warning behavior.
|
13938
|
-
|
13939
|
-
```javascript
|
13940
|
-
// next is not called, so no warnings get the default behavior
|
13941
|
-
Ember.Debug.registerWarnHandler(() => {});
|
13942
|
-
```
|
13943
|
-
|
13944
|
-
The handler function takes the following arguments:
|
13945
|
-
|
13946
|
-
<ul>
|
13947
|
-
<li> <code>message</code> - The message received from the warn call. </li>
|
13948
|
-
<li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>
|
13949
|
-
<ul>
|
13950
|
-
<li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>
|
13951
|
-
</ul>
|
13952
|
-
<li> <code>next</code> - A function that calls into the previously registered handler.</li>
|
13953
|
-
</ul>
|
13954
|
-
|
13955
|
-
@public
|
13956
|
-
@static
|
13957
|
-
@method registerWarnHandler
|
13958
|
-
@param handler {Function} A function to handle warnings.
|
13959
|
-
@since 2.1.0
|
13960
|
-
*/
|
13961
|
-
function registerHandler(handler) {
|
13962
|
-
(0, _handlers.registerHandler)('warn', handler);
|
13963
|
-
}
|
13964
|
-
|
13965
|
-
registerHandler(function (message) {
|
13966
|
-
_emberConsole.default.warn('WARNING: ' + message);
|
13967
|
-
if ('trace' in _emberConsole.default) {
|
13968
|
-
_emberConsole.default.trace();
|
13969
|
-
}
|
13970
|
-
});
|
13971
|
-
|
13972
|
-
var missingOptionsDeprecation = exports.missingOptionsDeprecation = 'When calling `Ember.warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';
|
13973
|
-
var missingOptionsIdDeprecation = exports.missingOptionsIdDeprecation = 'When calling `Ember.warn` you must provide `id` in options.';
|
13471
|
+
exports.default = function () {};
|
13472
|
+
exports.registerHandler = function () {};
|
13473
|
+
exports.missingOptionsIdDeprecation = void 0;
|
13474
|
+
exports.missingOptionsDeprecation = void 0;
|
13974
13475
|
});
|
13975
13476
|
enifed('ember-environment', ['exports'], function (exports) {
|
13976
13477
|
'use strict';
|
@@ -14076,9 +13577,6 @@ enifed('ember-environment', ['exports'], function (exports) {
|
|
14076
13577
|
*/
|
14077
13578
|
ENV.LOG_VERSION = defaultTrue(ENV.LOG_VERSION);
|
14078
13579
|
|
14079
|
-
// default false
|
14080
|
-
ENV.MODEL_FACTORY_INJECTIONS = defaultFalse(ENV.MODEL_FACTORY_INJECTIONS);
|
14081
|
-
|
14082
13580
|
/**
|
14083
13581
|
Debug parameter you can turn on. This will log all bindings that fire to
|
14084
13582
|
the console. This should be disabled in production code. Note that you
|
@@ -14535,7 +14033,6 @@ enifed('ember-extension-support/data_adapter', ['exports', 'ember-utils', 'ember
|
|
14535
14033
|
}
|
14536
14034
|
// Even though we will filter again in `getModelTypes`,
|
14537
14035
|
// we should not call `lookupFactory` on non-models
|
14538
|
-
// (especially when `EmberENV.MODEL_FACTORY_INJECTIONS` is `true`)
|
14539
14036
|
if (!_this5.detect(namespace[key])) {
|
14540
14037
|
continue;
|
14541
14038
|
}
|
@@ -15190,7 +14687,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
15190
14687
|
}
|
15191
14688
|
|
15192
14689
|
// If in a tagless component, assert that no event handlers are defined
|
15193
|
-
false && (
|
14690
|
+
false && !(this.tagName !== '' || !this.renderer._destinedForDOM || !function () {
|
15194
14691
|
var eventDispatcher = (0, _emberUtils.getOwner)(_this).lookup('event_dispatcher:main'),
|
15195
14692
|
methodName;
|
15196
14693
|
var events = eventDispatcher && eventDispatcher._finalEvents || {};
|
@@ -15203,8 +14700,16 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
|
|
15203
14700
|
return true; // indicate that the assertion should be triggered
|
15204
14701
|
}
|
15205
14702
|
}
|
14703
|
+
}()) && (0, _emberDebug.assert)('You can not define a function that handles DOM events in the `' + this + '` tagless component since it doesn\'t have any DOM element.', this.tagName !== '' || !this.renderer._destinedForDOM || !function () {
|
14704
|
+
var eventDispatcher = (0, _emberUtils.getOwner)(_this).lookup('event_dispatcher:main'),
|
14705
|
+
methodName;var events = eventDispatcher && eventDispatcher._finalEvents || {};for (var key in events) {
|
14706
|
+
methodName = events[key];
|
14707
|
+
if (typeof _this[methodName] === 'function') {
|
14708
|
+
return true;
|
14709
|
+
}
|
14710
|
+
}
|
15206
14711
|
}());
|
15207
|
-
false && (0, _emberDebug.assert)('You cannot use a computed property for the component\'s `tagName` (' + this + ').', !(this.tagName && this.tagName.isDescriptor));
|
14712
|
+
false && !!(this.tagName && this.tagName.isDescriptor) && (0, _emberDebug.assert)('You cannot use a computed property for the component\'s `tagName` (' + this + ').', !(this.tagName && this.tagName.isDescriptor));
|
15208
14713
|
},
|
15209
14714
|
rerender: function () {
|
15210
14715
|
this[DIRTY_TAG].dirty();
|
@@ -15688,12 +15193,16 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
|
|
15688
15193
|
params = params.slice();
|
15689
15194
|
}
|
15690
15195
|
|
15691
|
-
false &&
|
15196
|
+
false && !function () {
|
15692
15197
|
if (!params) {
|
15693
15198
|
return false;
|
15694
15199
|
}
|
15695
15200
|
|
15696
15201
|
return params.length;
|
15202
|
+
}() && (0, _emberDebug.assert)('You must provide one or more parameters to the link-to component.', function () {
|
15203
|
+
if (!params) {
|
15204
|
+
return false;
|
15205
|
+
}return params.length;
|
15697
15206
|
}());
|
15698
15207
|
|
15699
15208
|
var disabledWhen = (0, _emberMetal.get)(this, 'disabledWhen');
|
@@ -17022,7 +16531,7 @@ enifed('ember-glimmer/helpers/action', ['exports', 'ember-utils', 'ember-metal',
|
|
17022
16531
|
fn = void 0,
|
17023
16532
|
typeofAction;
|
17024
16533
|
|
17025
|
-
false && (0, _emberDebug.assert)('Action passed is null or undefined in (action) from ' + target + '.', !(0, _emberMetal.isNone)(action));
|
16534
|
+
false && !!(0, _emberMetal.isNone)(action) && (0, _emberDebug.assert)('Action passed is null or undefined in (action) from ' + target + '.', !(0, _emberMetal.isNone)(action));
|
17026
16535
|
|
17027
16536
|
if (typeof action[INVOKE] === 'function') {
|
17028
16537
|
self = action;
|
@@ -17035,12 +16544,12 @@ enifed('ember-glimmer/helpers/action', ['exports', 'ember-utils', 'ember-metal',
|
|
17035
16544
|
self = target;
|
17036
16545
|
fn = target.actions && target.actions[action];
|
17037
16546
|
|
17038
|
-
false && (0, _emberDebug.assert)('An action named \'' + action + '\' was not found in ' + target, fn);
|
16547
|
+
false && !fn && (0, _emberDebug.assert)('An action named \'' + action + '\' was not found in ' + target, fn);
|
17039
16548
|
} else if (typeofAction === 'function') {
|
17040
16549
|
self = context;
|
17041
16550
|
fn = action;
|
17042
16551
|
} else {
|
17043
|
-
false && (0, _emberDebug.assert)('An action could not be made for `' + (debugKey || action) + '` in ' + target + '. Please confirm that you are using either a quoted action name (i.e. `(action \'' + (debugKey || 'myAction') + '\')`) or a function available in ' + target + '.', false);
|
16552
|
+
false && !false && (0, _emberDebug.assert)('An action could not be made for `' + (debugKey || action) + '` in ' + target + '. Please confirm that you are using either a quoted action name (i.e. `(action \'' + (debugKey || 'myAction') + '\')`) or a function available in ' + target + '.', false);
|
17044
16553
|
}
|
17045
16554
|
}
|
17046
16555
|
|
@@ -17111,15 +16620,15 @@ enifed('ember-glimmer/helpers/component', ['exports', 'ember-babel', 'ember-util
|
|
17111
16620
|
this.lastName = nameOrDef;
|
17112
16621
|
|
17113
16622
|
if (typeof nameOrDef === 'string') {
|
17114
|
-
false && (0, _emberDebug.assert)('You cannot use the input helper as a contextual helper. Please extend Ember.TextField or Ember.Checkbox to use it as a contextual component.', nameOrDef !== 'input');
|
17115
|
-
false && (0, _emberDebug.assert)('You cannot use the textarea helper as a contextual helper. Please extend Ember.TextArea to use it as a contextual component.', nameOrDef !== 'textarea');
|
16623
|
+
false && !(nameOrDef !== 'input') && (0, _emberDebug.assert)('You cannot use the input helper as a contextual helper. Please extend Ember.TextField or Ember.Checkbox to use it as a contextual component.', nameOrDef !== 'input');
|
16624
|
+
false && !(nameOrDef !== 'textarea') && (0, _emberDebug.assert)('You cannot use the textarea helper as a contextual helper. Please extend Ember.TextArea to use it as a contextual component.', nameOrDef !== 'textarea');
|
17116
16625
|
|
17117
16626
|
definition = env.getComponentDefinition([nameOrDef], symbolTable);
|
17118
|
-
false && (0, _emberDebug.assert)('The component helper cannot be used without a valid component name. You used "' + nameOrDef + '" via (component "' + nameOrDef + '")', definition);
|
16627
|
+
false && !definition && (0, _emberDebug.assert)('The component helper cannot be used without a valid component name. You used "' + nameOrDef + '" via (component "' + nameOrDef + '")', definition);
|
17119
16628
|
} else if ((0, _runtime.isComponentDefinition)(nameOrDef)) {
|
17120
16629
|
definition = nameOrDef;
|
17121
16630
|
} else {
|
17122
|
-
false && (0, _emberDebug.assert)('You cannot create a component from ' + nameOrDef + ' using the {{component}} helper', nameOrDef);
|
16631
|
+
false && !nameOrDef && (0, _emberDebug.assert)('You cannot create a component from ' + nameOrDef + ' using the {{component}} helper', nameOrDef);
|
17123
16632
|
|
17124
16633
|
return null;
|
17125
16634
|
}
|
@@ -17479,7 +16988,7 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-babel', 'ember-debu
|
|
17479
16988
|
case 3:
|
17480
16989
|
return ConditionalHelperReference.create(positional.at(0), positional.at(1), positional.at(2));
|
17481
16990
|
default:
|
17482
|
-
false && (0, _emberDebug.assert)('The inline form of the `if` helper expects two or three arguments, e.g. ' + '`{{if trialExpired "Expired" expiryDate}}`.');
|
16991
|
+
false && !false && (0, _emberDebug.assert)('The inline form of the `if` helper expects two or three arguments, e.g. ' + '`{{if trialExpired "Expired" expiryDate}}`.');
|
17483
16992
|
|
17484
16993
|
}
|
17485
16994
|
}
|
@@ -17514,7 +17023,7 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-babel', 'ember-debu
|
|
17514
17023
|
case 3:
|
17515
17024
|
return ConditionalHelperReference.create(positional.at(0), positional.at(2), positional.at(1));
|
17516
17025
|
default:
|
17517
|
-
false && (0, _emberDebug.assert)('The inline form of the `unless` helper expects two or three arguments, e.g. ' + '`{{unless isFirstLogin "Welcome back!"}}`.');
|
17026
|
+
false && !false && (0, _emberDebug.assert)('The inline form of the `unless` helper expects two or three arguments, e.g. ' + '`{{unless isFirstLogin "Welcome back!"}}`.');
|
17518
17027
|
|
17519
17028
|
}
|
17520
17029
|
};
|
@@ -17669,7 +17178,7 @@ enifed('ember-glimmer/helpers/mut', ['exports', 'ember-utils', 'ember-debug', 'e
|
|
17669
17178
|
//
|
17670
17179
|
// This message is alright for the first case, but could be quite
|
17671
17180
|
// confusing for the second case.
|
17672
|
-
false && (0, _emberDebug.assert)('You can only pass a path to mut', rawRef[_references.UPDATE]);
|
17181
|
+
false && !rawRef[_references.UPDATE] && (0, _emberDebug.assert)('You can only pass a path to mut', rawRef[_references.UPDATE]);
|
17673
17182
|
|
17674
17183
|
var wrappedRef = Object.create(rawRef);
|
17675
17184
|
|
@@ -17790,7 +17299,7 @@ enifed('ember-glimmer/helpers/query-param', ['exports', 'ember-utils', 'ember-gl
|
|
17790
17299
|
function queryParams(_ref) {
|
17791
17300
|
var positional = _ref.positional,
|
17792
17301
|
named = _ref.named;
|
17793
|
-
false && (0, _emberDebug.assert)('The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName=\'foo\') as opposed to just (query-params \'foo\')', positional.value().length === 0);
|
17302
|
+
false && !(positional.value().length === 0) && (0, _emberDebug.assert)('The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName=\'foo\') as opposed to just (query-params \'foo\')', positional.value().length === 0);
|
17794
17303
|
|
17795
17304
|
return _emberRouting.QueryParams.create({
|
17796
17305
|
values: (0, _emberUtils.assign)({}, named.value())
|
@@ -17814,7 +17323,7 @@ enifed('ember-glimmer/helpers/unbound', ['exports', 'ember-debug', 'ember-glimme
|
|
17814
17323
|
'use strict';
|
17815
17324
|
|
17816
17325
|
exports.default = function (vm, args) {
|
17817
|
-
false && (0, _emberDebug.assert)('unbound helper cannot be called with multiple params or hash params', args.positional.values.length === 1 && args.named.keys.length === 0);
|
17326
|
+
false && !(args.positional.values.length === 1 && args.named.keys.length === 0) && (0, _emberDebug.assert)('unbound helper cannot be called with multiple params or hash params', args.positional.values.length === 1 && args.named.keys.length === 0);
|
17818
17327
|
|
17819
17328
|
return _references.UnboundReference.create(args.positional.at(0).value());
|
17820
17329
|
};
|
@@ -18151,7 +17660,7 @@ enifed('ember-glimmer/modifiers/action', ['exports', 'ember-utils', 'ember-metal
|
|
18151
17660
|
target.send.apply(target, [actionName].concat(args));
|
18152
17661
|
});
|
18153
17662
|
} else {
|
18154
|
-
false && (0, _emberDebug.assert)('The action \'' + actionName + '\' did not exist on ' + target, typeof target[actionName] === 'function');
|
17663
|
+
false && !(typeof target[actionName] === 'function') && (0, _emberDebug.assert)('The action \'' + actionName + '\' did not exist on ' + target, typeof target[actionName] === 'function');
|
18155
17664
|
|
18156
17665
|
(0, _emberMetal.flaggedInstrument)('interaction.ember-action', payload, function () {
|
18157
17666
|
target[actionName].apply(target, args);
|
@@ -18190,7 +17699,7 @@ enifed('ember-glimmer/modifiers/action', ['exports', 'ember-utils', 'ember-metal
|
|
18190
17699
|
|
18191
17700
|
actionName = actionNameRef.value();
|
18192
17701
|
|
18193
|
-
false && (0, _emberDebug.assert)('You specified a quoteless path, `' + actionLabel + '`, to the ' + '{{action}} helper which did not resolve to an action name (a ' + 'string). Perhaps you meant to use a quoted actionName? (e.g. ' + '{{action "' + actionLabel + '"}}).', typeof actionName === 'string' || typeof actionName === 'function');
|
17702
|
+
false && !(typeof actionName === 'string' || typeof actionName === 'function') && (0, _emberDebug.assert)('You specified a quoteless path, `' + actionLabel + '`, to the ' + '{{action}} helper which did not resolve to an action name (a ' + 'string). Perhaps you meant to use a quoted actionName? (e.g. ' + '{{action "' + actionLabel + '"}}).', typeof actionName === 'string' || typeof actionName === 'function');
|
18194
17703
|
}
|
18195
17704
|
}
|
18196
17705
|
|
@@ -18308,13 +17817,13 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
|
|
18308
17817
|
};
|
18309
17818
|
|
18310
17819
|
DynamicScope.prototype.get = function (key) {
|
18311
|
-
false && (0, _emberDebug.assert)('Using `-get-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState');
|
17820
|
+
false && !(key === 'outletState') && (0, _emberDebug.assert)('Using `-get-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState');
|
18312
17821
|
|
18313
17822
|
return this.outletState;
|
18314
17823
|
};
|
18315
17824
|
|
18316
17825
|
DynamicScope.prototype.set = function (key, value) {
|
18317
|
-
false && (0, _emberDebug.assert)('Using `-with-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState');
|
17826
|
+
false && !(key === 'outletState') && (0, _emberDebug.assert)('Using `-with-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState');
|
18318
17827
|
|
18319
17828
|
this.outletState = value;
|
18320
17829
|
return value;
|
@@ -18327,7 +17836,7 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
|
|
18327
17836
|
function RootState(root, env, template, self, parentElement, dynamicScope) {
|
18328
17837
|
var _this = this;
|
18329
17838
|
|
18330
|
-
false && (0, _emberDebug.assert)('You cannot render `' + self.value() + '` without a template.', template);
|
17839
|
+
false && !template && (0, _emberDebug.assert)('You cannot render `' + self.value() + '` without a template.', template);
|
18331
17840
|
|
18332
17841
|
this.id = (0, _emberViews.getViewId)(root);
|
18333
17842
|
this.env = env;
|
@@ -18408,14 +17917,14 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
|
|
18408
17917
|
});
|
18409
17918
|
|
18410
17919
|
function register(renderer) {
|
18411
|
-
false && (0, _emberDebug.assert)('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1);
|
17920
|
+
false && !(renderers.indexOf(renderer) === -1) && (0, _emberDebug.assert)('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1);
|
18412
17921
|
|
18413
17922
|
renderers.push(renderer);
|
18414
17923
|
}
|
18415
17924
|
|
18416
17925
|
function deregister(renderer) {
|
18417
17926
|
var index = renderers.indexOf(renderer);
|
18418
|
-
false && (0, _emberDebug.assert)('Cannot deregister unknown unregistered renderer', index !== -1);
|
17927
|
+
false && !(index !== -1) && (0, _emberDebug.assert)('Cannot deregister unknown unregistered renderer', index !== -1);
|
18419
17928
|
|
18420
17929
|
renderers.splice(index, 1);
|
18421
17930
|
}
|
@@ -18501,7 +18010,7 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
|
|
18501
18010
|
|
18502
18011
|
Renderer.prototype.register = function (view) {
|
18503
18012
|
var id = (0, _emberViews.getViewId)(view);
|
18504
|
-
false && (0, _emberDebug.assert)('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]);
|
18013
|
+
false && !!this._viewRegistry[id] && (0, _emberDebug.assert)('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]);
|
18505
18014
|
|
18506
18015
|
this._viewRegistry[id] = view;
|
18507
18016
|
};
|
@@ -18858,7 +18367,7 @@ enifed('ember-glimmer/syntax', ['exports', 'ember-glimmer/syntax/render', 'ember
|
|
18858
18367
|
|
18859
18368
|
function refineInlineSyntax(path, params, hash, builder) {
|
18860
18369
|
var name = path[0];
|
18861
|
-
false && (0, _emberDebug.assert)('You attempted to overwrite the built-in helper "' + name + '" which is not allowed. Please rename the helper.', !(builder.env.builtInHelpers[name] && builder.env.owner.hasRegistration('helper:' + name)));
|
18370
|
+
false && !!(builder.env.builtInHelpers[name] && builder.env.owner.hasRegistration('helper:' + name)) && (0, _emberDebug.assert)('You attempted to overwrite the built-in helper "' + name + '" which is not allowed. Please rename the helper.', !(builder.env.builtInHelpers[name] && builder.env.owner.hasRegistration('helper:' + name)));
|
18862
18371
|
|
18863
18372
|
if (path.length > 1) {
|
18864
18373
|
return (0, _dynamicComponent.closureComponentMacro)(path, params, hash, null, null, builder);
|
@@ -18909,8 +18418,8 @@ enifed('ember-glimmer/syntax', ['exports', 'ember-glimmer/syntax/render', 'ember
|
|
18909
18418
|
return true;
|
18910
18419
|
}
|
18911
18420
|
|
18912
|
-
false && (0, _emberDebug.assert)('A component or helper named "' + name + '" could not be found', builder.env.hasHelper(path, symbolTable));
|
18913
|
-
false && (0, _emberDebug.assert)('Helpers may not be used in the block form, for example {{#' + name + '}}{{/' + name + '}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (' + name + ')}}{{/if}}.', !builder.env.hasHelper(path, symbolTable));
|
18421
|
+
false && !builder.env.hasHelper(path, symbolTable) && (0, _emberDebug.assert)('A component or helper named "' + name + '" could not be found', builder.env.hasHelper(path, symbolTable));
|
18422
|
+
false && !!builder.env.hasHelper(path, symbolTable) && (0, _emberDebug.assert)('Helpers may not be used in the block form, for example {{#' + name + '}}{{/' + name + '}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (' + name + ')}}{{/if}}.', !builder.env.hasHelper(path, symbolTable));
|
18914
18423
|
|
18915
18424
|
return false;
|
18916
18425
|
}
|
@@ -18988,7 +18497,7 @@ enifed('ember-glimmer/syntax/curly-component', ['exports', 'ember-babel', 'ember
|
|
18988
18497
|
|
18989
18498
|
function aliasIdToElementId(args, props) {
|
18990
18499
|
if (args.named.has('id')) {
|
18991
|
-
false && (0, _emberDebug.assert)('You cannot invoke a component with both \'id\' and \'elementId\' at the same time.', !args.named.has('elementId'));
|
18500
|
+
false && !!args.named.has('elementId') && (0, _emberDebug.assert)('You cannot invoke a component with both \'id\' and \'elementId\' at the same time.', !args.named.has('elementId'));
|
18992
18501
|
|
18993
18502
|
props.elementId = props.id;
|
18994
18503
|
}
|
@@ -19462,7 +18971,7 @@ enifed('ember-glimmer/syntax/dynamic-component', ['exports', '@glimmer/runtime',
|
|
19462
18971
|
definition = env.getComponentDefinition([nameOrDef], symbolTable);
|
19463
18972
|
|
19464
18973
|
|
19465
|
-
false && (0, _emberDebug.assert)('Could not find component named "' + nameOrDef + '" (no component or template with that name was found)', definition);
|
18974
|
+
false && !definition && (0, _emberDebug.assert)('Could not find component named "' + nameOrDef + '" (no component or template with that name was found)', definition);
|
19466
18975
|
|
19467
18976
|
return definition;
|
19468
18977
|
} else if ((0, _runtime.isComponentDefinition)(nameOrDef)) {
|
@@ -19645,7 +19154,7 @@ enifed('ember-glimmer/syntax/input', ['exports', 'ember-debug', 'ember-glimmer/u
|
|
19645
19154
|
|
19646
19155
|
if (!Array.isArray(typeArg)) {
|
19647
19156
|
if (typeArg === 'checkbox') {
|
19648
|
-
false && (0, _emberDebug.assert)('{{input type=\'checkbox\'}} does not support setting `value=someBooleanValue`; ' + 'you must use `checked=someBooleanValue` instead.', valueIndex === -1);
|
19157
|
+
false && !(valueIndex === -1) && (0, _emberDebug.assert)('{{input type=\'checkbox\'}} does not support setting `value=someBooleanValue`; ' + 'you must use `checked=someBooleanValue` instead.', valueIndex === -1);
|
19649
19158
|
|
19650
19159
|
(0, _bindings.wrapComponentClassAttribute)(hash);
|
19651
19160
|
|
@@ -19700,7 +19209,7 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', '@glimmer/runtim
|
|
19700
19209
|
@submodule ember-glimmer
|
19701
19210
|
*/
|
19702
19211
|
function (path, params, hash, builder) {
|
19703
|
-
false && (0, _emberDebug.assert)('You can only pass a single argument to the {{mount}} helper, e.g. {{mount "chat-engine"}}.', params.length === 1 && hash === null);
|
19212
|
+
false && !(params.length === 1 && hash === null) && (0, _emberDebug.assert)('You can only pass a single argument to the {{mount}} helper, e.g. {{mount "chat-engine"}}.', params.length === 1 && hash === null);
|
19704
19213
|
|
19705
19214
|
var definitionArgs = [params.slice(0, 1), null, null, null];
|
19706
19215
|
|
@@ -19743,7 +19252,7 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', '@glimmer/runtim
|
|
19743
19252
|
return this._lastDef;
|
19744
19253
|
}
|
19745
19254
|
|
19746
|
-
false && (0, _emberDebug.assert)('You used `{{mount \'' + nameOrDef + '\'}}`, but the engine \'' + nameOrDef + '\' can not be found.', env.owner.hasRegistration('engine:' + nameOrDef));
|
19255
|
+
false && !env.owner.hasRegistration('engine:' + nameOrDef) && (0, _emberDebug.assert)('You used `{{mount \'' + nameOrDef + '\'}}`, but the engine \'' + nameOrDef + '\' can not be found.', env.owner.hasRegistration('engine:' + nameOrDef));
|
19747
19256
|
|
19748
19257
|
if (!env.owner.hasRegistration('engine:' + nameOrDef)) {
|
19749
19258
|
return null;
|
@@ -19754,7 +19263,7 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', '@glimmer/runtim
|
|
19754
19263
|
|
19755
19264
|
return this._lastDef;
|
19756
19265
|
} else {
|
19757
|
-
false && (0, _emberDebug.assert)('Invalid engine name \'' + nameOrDef + '\' specified, engine name must be either a string, null or undefined.', nameOrDef === null || nameOrDef === undefined);
|
19266
|
+
false && !(nameOrDef === null || nameOrDef === undefined) && (0, _emberDebug.assert)('Invalid engine name \'' + nameOrDef + '\' specified, engine name must be either a string, null or undefined.', nameOrDef === null || nameOrDef === undefined);
|
19758
19267
|
|
19759
19268
|
return null;
|
19760
19269
|
}
|
@@ -20233,12 +19742,12 @@ enifed('ember-glimmer/syntax/render', ['exports', 'ember-babel', '@glimmer/runti
|
|
20233
19742
|
var args = vm.getArgs();
|
20234
19743
|
var nameRef = args.positional.at(0);
|
20235
19744
|
|
20236
|
-
false && (0, _emberDebug.assert)('The first argument of {{render}} must be quoted, e.g. {{render "sidebar"}}.', (0, _reference.isConst)(nameRef));
|
20237
|
-
false && (0, _emberDebug.assert)('The second argument of {{render}} must be a path, e.g. {{render "post" post}}.', args.positional.length === 1 || !(0, _reference.isConst)(args.positional.at(1)));
|
19745
|
+
false && !(0, _reference.isConst)(nameRef) && (0, _emberDebug.assert)('The first argument of {{render}} must be quoted, e.g. {{render "sidebar"}}.', (0, _reference.isConst)(nameRef));
|
19746
|
+
false && !(args.positional.length === 1 || !(0, _reference.isConst)(args.positional.at(1))) && (0, _emberDebug.assert)('The second argument of {{render}} must be a path, e.g. {{render "post" post}}.', args.positional.length === 1 || !(0, _reference.isConst)(args.positional.at(1)));
|
20238
19747
|
|
20239
19748
|
var templateName = nameRef.value();
|
20240
19749
|
|
20241
|
-
false && (0, _emberDebug.assert)('You used `{{render \'' + templateName + '\'}}`, but \'' + templateName + '\' can not be found as a template.', env.owner.hasRegistration('template:' + templateName));
|
19750
|
+
false && !env.owner.hasRegistration('template:' + templateName) && (0, _emberDebug.assert)('You used `{{render \'' + templateName + '\'}}`, but \'' + templateName + '\' can not be found as a template.', env.owner.hasRegistration('template:' + templateName));
|
20242
19751
|
|
20243
19752
|
var template = env.owner.lookup('template:' + templateName);
|
20244
19753
|
|
@@ -20248,11 +19757,11 @@ enifed('ember-glimmer/syntax/render', ['exports', 'ember-babel', '@glimmer/runti
|
|
20248
19757
|
controllerNameRef = args.named.get('controller');
|
20249
19758
|
|
20250
19759
|
|
20251
|
-
false && (0, _emberDebug.assert)('The controller argument for {{render}} must be quoted, e.g. {{render "sidebar" controller="foo"}}.', (0, _reference.isConst)(controllerNameRef));
|
19760
|
+
false && !(0, _reference.isConst)(controllerNameRef) && (0, _emberDebug.assert)('The controller argument for {{render}} must be quoted, e.g. {{render "sidebar" controller="foo"}}.', (0, _reference.isConst)(controllerNameRef));
|
20252
19761
|
|
20253
19762
|
controllerName = controllerNameRef.value();
|
20254
19763
|
|
20255
|
-
false && (0, _emberDebug.assert)('The controller name you supplied \'' + controllerName + '\' did not resolve to a controller.', env.owner.hasRegistration('controller:' + controllerName));
|
19764
|
+
false && !env.owner.hasRegistration('controller:' + controllerName) && (0, _emberDebug.assert)('The controller name you supplied \'' + controllerName + '\' did not resolve to a controller.', env.owner.hasRegistration('controller:' + controllerName));
|
20256
19765
|
} else {
|
20257
19766
|
controllerName = templateName;
|
20258
19767
|
}
|
@@ -20517,7 +20026,7 @@ enifed('ember-glimmer/utils/bindings', ['exports', 'ember-babel', '@glimmer/refe
|
|
20517
20026
|
attribute;
|
20518
20027
|
|
20519
20028
|
if (colonIndex === -1) {
|
20520
|
-
false && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class');
|
20029
|
+
false && !(microsyntax !== 'class') && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class');
|
20521
20030
|
|
20522
20031
|
return [microsyntax, microsyntax, true];
|
20523
20032
|
} else {
|
@@ -20525,7 +20034,7 @@ enifed('ember-glimmer/utils/bindings', ['exports', 'ember-babel', '@glimmer/refe
|
|
20525
20034
|
attribute = microsyntax.substring(colonIndex + 1);
|
20526
20035
|
|
20527
20036
|
|
20528
|
-
false && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class');
|
20037
|
+
false && !(attribute !== 'class') && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class');
|
20529
20038
|
|
20530
20039
|
return [prop, attribute, false];
|
20531
20040
|
}
|
@@ -20549,7 +20058,7 @@ enifed('ember-glimmer/utils/bindings', ['exports', 'ember-babel', '@glimmer/refe
|
|
20549
20058
|
var isPath = prop.indexOf('.') > -1;
|
20550
20059
|
var reference = isPath ? referenceForParts(component, prop.split('.')) : referenceForKey(component, prop);
|
20551
20060
|
|
20552
|
-
false && (0, _emberDebug.assert)('Illegal attributeBinding: \'' + prop + '\' is not a valid attribute name.', !(isSimple && isPath));
|
20061
|
+
false && !!(isSimple && isPath) && (0, _emberDebug.assert)('Illegal attributeBinding: \'' + prop + '\' is not a valid attribute name.', !(isSimple && isPath));
|
20553
20062
|
|
20554
20063
|
if (attribute === 'style') {
|
20555
20064
|
reference = new StyleBindingReference(reference, referenceForKey(component, 'isVisible'));
|
@@ -22176,7 +21685,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22176
21685
|
@public
|
22177
21686
|
*/
|
22178
21687
|
function addListener(obj, eventName, target, method, once) {
|
22179
|
-
false && emberDebug.assert('You must pass at least an object and event name to Ember.addListener', !!obj && !!eventName);
|
21688
|
+
false && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to Ember.addListener', !!obj && !!eventName);
|
22180
21689
|
false && !(eventName !== 'didInitAttrs') && emberDebug.deprecate('didInitAttrs called in ' + (obj && obj.toString && obj.toString()) + '.', eventName !== 'didInitAttrs', {
|
22181
21690
|
id: 'ember-views.did-init-attrs',
|
22182
21691
|
until: '3.0.0',
|
@@ -22214,7 +21723,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
22214
21723
|
@public
|
22215
21724
|
*/
|
22216
21725
|
function removeListener(obj, eventName, target, method) {
|
22217
|
-
false && emberDebug.assert('You must pass at least an object and event name to Ember.removeListener', !!obj && !!eventName);
|
21726
|
+
false && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to Ember.removeListener', !!obj && !!eventName);
|
22218
21727
|
|
22219
21728
|
if (!method && 'function' === typeof target) {
|
22220
21729
|
method = target;
|
@@ -23508,7 +23017,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23508
23017
|
var key = memberProperty(name);
|
23509
23018
|
var capitalized = capitalize(name);
|
23510
23019
|
Meta.prototype['writable' + capitalized] = function (create) {
|
23511
|
-
false && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23020
|
+
false && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23512
23021
|
|
23513
23022
|
var ret = this[key];
|
23514
23023
|
if (ret === undefined) {
|
@@ -23705,7 +23214,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23705
23214
|
|
23706
23215
|
|
23707
23216
|
Meta.prototype.writeDeps = function (subkey, itemkey, value) {
|
23708
|
-
false && emberDebug.assert('Cannot call writeDeps after the object is destroyed.', !this.isMetaDestroyed());
|
23217
|
+
false && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call writeDeps after the object is destroyed.', !this.isMetaDestroyed());
|
23709
23218
|
|
23710
23219
|
var outerMap = this._getOrCreateOwnMap('_deps');
|
23711
23220
|
var innerMap = outerMap[subkey];
|
@@ -23870,7 +23379,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23870
23379
|
var capitalized = capitalize(name);
|
23871
23380
|
|
23872
23381
|
Meta.prototype['write' + capitalized] = function (subkey, value) {
|
23873
|
-
false && emberDebug.assert('Cannot call write' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23382
|
+
false && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call write' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23874
23383
|
|
23875
23384
|
var map = this._getOrCreateOwnMap(key);
|
23876
23385
|
map[subkey] = value;
|
@@ -23901,7 +23410,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23901
23410
|
};
|
23902
23411
|
|
23903
23412
|
Meta.prototype['clear' + capitalized] = function () {
|
23904
|
-
false && emberDebug.assert('Cannot call clear' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23413
|
+
false && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call clear' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23905
23414
|
|
23906
23415
|
this[key] = undefined;
|
23907
23416
|
};
|
@@ -23923,7 +23432,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
23923
23432
|
var key = memberProperty(name);
|
23924
23433
|
var capitalized = capitalize(name);
|
23925
23434
|
Meta.prototype['writable' + capitalized] = function (create) {
|
23926
|
-
false && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23435
|
+
false && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
|
23927
23436
|
|
23928
23437
|
var ret = this[key];
|
23929
23438
|
if (ret === undefined) {
|
@@ -24229,11 +23738,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24229
23738
|
@public
|
24230
23739
|
*/
|
24231
23740
|
function get(obj, keyName) {
|
24232
|
-
false && emberDebug.assert('Get must be called with two arguments; an object and a property key', arguments.length === 2);
|
24233
|
-
false && emberDebug.assert('Cannot call get with \'' + keyName + '\' on an undefined object.', obj !== undefined && obj !== null);
|
24234
|
-
false && emberDebug.assert('The key provided to get must be a string, you passed ' + keyName, typeof keyName === 'string');
|
24235
|
-
false && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
|
24236
|
-
false && emberDebug.assert('Cannot call `Ember.get` with an empty string', keyName !== '');
|
23741
|
+
false && !(arguments.length === 2) && emberDebug.assert('Get must be called with two arguments; an object and a property key', arguments.length === 2);
|
23742
|
+
false && !(obj !== undefined && obj !== null) && emberDebug.assert('Cannot call get with \'' + keyName + '\' on an undefined object.', obj !== undefined && obj !== null);
|
23743
|
+
false && !(typeof keyName === 'string') && emberDebug.assert('The key provided to get must be a string, you passed ' + keyName, typeof keyName === 'string');
|
23744
|
+
false && !!hasThis(keyName) && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
|
23745
|
+
false && !(keyName !== '') && emberDebug.assert('Cannot call `Ember.get` with an empty string', keyName !== '');
|
24237
23746
|
|
24238
23747
|
var value = obj[keyName];
|
24239
23748
|
var desc = value !== null && typeof value === 'object' && value.isDescriptor ? value : undefined;
|
@@ -24321,11 +23830,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24321
23830
|
@public
|
24322
23831
|
*/
|
24323
23832
|
function set(obj, keyName, value, tolerant) {
|
24324
|
-
false && emberDebug.assert('Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false', arguments.length === 3 || arguments.length === 4);
|
24325
|
-
false && emberDebug.assert('Cannot call set with \'' + keyName + '\' on an undefined object.', obj && typeof obj === 'object' || typeof obj === 'function');
|
24326
|
-
false && emberDebug.assert('The key provided to set must be a string, you passed ' + keyName, typeof keyName === 'string');
|
24327
|
-
false && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
|
24328
|
-
false && emberDebug.assert('calling set on destroyed object: ' + emberUtils.toString(obj) + '.' + keyName + ' = ' + emberUtils.toString(value), !obj.isDestroyed);
|
23833
|
+
false && !(arguments.length === 3 || arguments.length === 4) && emberDebug.assert('Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false', arguments.length === 3 || arguments.length === 4);
|
23834
|
+
false && !(obj && typeof obj === 'object' || typeof obj === 'function') && emberDebug.assert('Cannot call set with \'' + keyName + '\' on an undefined object.', obj && typeof obj === 'object' || typeof obj === 'function');
|
23835
|
+
false && !(typeof keyName === 'string') && emberDebug.assert('The key provided to set must be a string, you passed ' + keyName, typeof keyName === 'string');
|
23836
|
+
false && !!hasThis(keyName) && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
|
23837
|
+
false && !!obj.isDestroyed && emberDebug.assert('calling set on destroyed object: ' + emberUtils.toString(obj) + '.' + keyName + ' = ' + emberUtils.toString(value), !obj.isDestroyed);
|
24329
23838
|
|
24330
23839
|
if (isPath(keyName)) {
|
24331
23840
|
return setPath(obj, keyName, value, tolerant);
|
@@ -24347,7 +23856,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24347
23856
|
desc.set(obj, keyName, value);
|
24348
23857
|
} else if (obj.setUnknownProperty && currentValue === undefined && !(keyName in obj)) {
|
24349
23858
|
/* unknown property */
|
24350
|
-
false && emberDebug.assert('setUnknownProperty must be a function', typeof obj.setUnknownProperty === 'function');
|
23859
|
+
false && !(typeof obj.setUnknownProperty === 'function') && emberDebug.assert('setUnknownProperty must be a function', typeof obj.setUnknownProperty === 'function');
|
24351
23860
|
|
24352
23861
|
obj.setUnknownProperty(keyName, value);
|
24353
23862
|
} else if (currentValue === value) {
|
@@ -24447,66 +23956,37 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24447
23956
|
expansion, and is passed the expansion.
|
24448
23957
|
*/
|
24449
23958
|
function expandProperties(pattern, callback) {
|
24450
|
-
false && emberDebug.assert('A computed property key must be a string, you passed ' + typeof pattern + ' ' + pattern, typeof pattern === 'string');
|
24451
|
-
false && emberDebug.assert('Brace expanded properties cannot contain spaces, e.g. "user.{firstName, lastName}" should be "user.{firstName,lastName}"', pattern.indexOf(' ') === -1);
|
23959
|
+
false && !(typeof pattern === 'string') && emberDebug.assert('A computed property key must be a string, you passed ' + typeof pattern + ' ' + pattern, typeof pattern === 'string');
|
23960
|
+
false && !(pattern.indexOf(' ') === -1) && emberDebug.assert('Brace expanded properties cannot contain spaces, e.g. "user.{firstName, lastName}" should be "user.{firstName,lastName}"', pattern.indexOf(' ') === -1);
|
23961
|
+
// regex to look for double open, double close, or unclosed braces
|
24452
23962
|
|
24453
|
-
|
24454
|
-
|
24455
|
-
|
24456
|
-
|
24457
|
-
|
24458
|
-
|
24459
|
-
|
24460
|
-
_i;
|
24461
|
-
var properties = [pattern];
|
24462
|
-
|
24463
|
-
// Iterating backward over the pattern makes dealing with indices easier.
|
24464
|
-
var bookmark = void 0;
|
24465
|
-
var inside = false;
|
24466
|
-
for (i = pattern.length; i > 0; --i) {
|
24467
|
-
current = pattern[i - 1];
|
24468
|
-
|
24469
|
-
|
24470
|
-
switch (current) {
|
24471
|
-
// Closing curly brace will be the first character of the brace expansion we encounter.
|
24472
|
-
// Bookmark its index so long as we're not already inside a brace expansion.
|
24473
|
-
case '}':
|
24474
|
-
if (!inside) {
|
24475
|
-
bookmark = i - 1;
|
24476
|
-
inside = true;
|
24477
|
-
} else {
|
24478
|
-
false && emberDebug.assert(unbalancedNestedError, false);
|
24479
|
-
}
|
24480
|
-
break;
|
24481
|
-
// Opening curly brace will be the last character of the brace expansion we encounter.
|
24482
|
-
// Apply the brace expansion so long as we've already seen a closing curly brace.
|
24483
|
-
case '{':
|
24484
|
-
if (inside) {
|
24485
|
-
expansion = pattern.slice(i, bookmark).split(',');
|
24486
|
-
// Iterating backward allows us to push new properties w/out affecting our "cursor".
|
24487
|
-
|
24488
|
-
for (j = properties.length; j > 0; --j) {
|
24489
|
-
// Extract the unexpanded property from the array.
|
24490
|
-
property = properties.splice(j - 1, 1)[0];
|
24491
|
-
// Iterate over the expansion, pushing the newly formed properties onto the array.
|
24492
|
-
|
24493
|
-
for (k = 0; k < expansion.length; ++k) {
|
24494
|
-
properties.push(property.slice(0, i - 1) + expansion[k] + property.slice(bookmark + 1));
|
24495
|
-
}
|
24496
|
-
}
|
24497
|
-
inside = false;
|
24498
|
-
} else {
|
24499
|
-
false && emberDebug.assert(unbalancedNestedError, false);
|
24500
|
-
}
|
24501
|
-
break;
|
24502
|
-
}
|
24503
|
-
}
|
24504
|
-
if (inside) {
|
24505
|
-
false && emberDebug.assert(unbalancedNestedError, false);
|
23963
|
+
false && !(pattern.match(/\{[^}{]*\{|\}[^}{]*\}|\{[^}]*$/g) === null) && emberDebug.assert('Brace expanded properties have to be balanced and cannot be nested, pattern: ' + pattern, pattern.match(/\{[^}{]*\{|\}[^}{]*\}|\{[^}]*$/g) === null);
|
23964
|
+
|
23965
|
+
var start = pattern.indexOf('{');
|
23966
|
+
if (start < 0) {
|
23967
|
+
callback(pattern.replace(END_WITH_EACH_REGEX, '.[]'));
|
23968
|
+
} else {
|
23969
|
+
dive('', pattern, start, callback);
|
24506
23970
|
}
|
23971
|
+
}
|
24507
23972
|
|
24508
|
-
|
24509
|
-
|
23973
|
+
function dive(prefix, pattern, start, callback) {
|
23974
|
+
var end = pattern.indexOf('}'),
|
23975
|
+
i = 0,
|
23976
|
+
newStart = void 0,
|
23977
|
+
arrayLength = void 0;
|
23978
|
+
var tempArr = pattern.substring(start + 1, end).split(',');
|
23979
|
+
var after = pattern.substring(end + 1);
|
23980
|
+
prefix = prefix + pattern.substring(0, start);
|
23981
|
+
|
23982
|
+
arrayLength = tempArr.length;
|
23983
|
+
while (i < arrayLength) {
|
23984
|
+
newStart = after.indexOf('{');
|
23985
|
+
if (newStart < 0) {
|
23986
|
+
callback((prefix + tempArr[i++] + after).replace(END_WITH_EACH_REGEX, '.[]'));
|
23987
|
+
} else {
|
23988
|
+
dive(prefix + tempArr[i++], after, newStart, callback);
|
23989
|
+
}
|
24510
23990
|
}
|
24511
23991
|
}
|
24512
23992
|
|
@@ -24719,8 +24199,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24719
24199
|
if (typeof config === 'function') {
|
24720
24200
|
this._getter = config;
|
24721
24201
|
} else {
|
24722
|
-
false && emberDebug.assert('Ember.computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));
|
24723
|
-
false &&
|
24202
|
+
false && !(typeof config === 'object' && !Array.isArray(config)) && emberDebug.assert('Ember.computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));
|
24203
|
+
false && !function () {
|
24724
24204
|
var keys = Object.keys(config),
|
24725
24205
|
i;
|
24726
24206
|
for (i = 0; i < keys.length; i++) {
|
@@ -24729,12 +24209,19 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24729
24209
|
}
|
24730
24210
|
}
|
24731
24211
|
return true;
|
24212
|
+
}() && emberDebug.assert('Config object passed to an Ember.computed can only contain `get` or `set` keys.', function () {
|
24213
|
+
var keys = Object.keys(config),
|
24214
|
+
i;for (i = 0; i < keys.length; i++) {
|
24215
|
+
if (keys[i] !== 'get' && keys[i] !== 'set') {
|
24216
|
+
return false;
|
24217
|
+
}
|
24218
|
+
}return true;
|
24732
24219
|
}());
|
24733
24220
|
|
24734
24221
|
this._getter = config.get;
|
24735
24222
|
this._setter = config.set;
|
24736
24223
|
}
|
24737
|
-
false && emberDebug.assert('Computed properties must receive a getter or a setter, you passed none.', !!this._getter || !!this._setter);
|
24224
|
+
false && !(!!this._getter || !!this._setter) && emberDebug.assert('Computed properties must receive a getter or a setter, you passed none.', !!this._getter || !!this._setter);
|
24738
24225
|
|
24739
24226
|
this._dependentKeys = undefined;
|
24740
24227
|
this._suspended = undefined;
|
@@ -24800,7 +24287,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
24800
24287
|
*/
|
24801
24288
|
ComputedPropertyPrototype.readOnly = function () {
|
24802
24289
|
this._readOnly = true;
|
24803
|
-
false && emberDebug.assert('Computed properties that define a setter using the new syntax cannot be read-only', !(this._readOnly && this._setter && this._setter !== this._getter));
|
24290
|
+
false && !!(this._readOnly && this._setter && this._setter !== this._getter) && emberDebug.assert('Computed properties that define a setter using the new syntax cannot be read-only', !(this._readOnly && this._setter && this._setter !== this._getter));
|
24804
24291
|
|
24805
24292
|
return this;
|
24806
24293
|
};
|
@@ -25181,7 +24668,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
25181
24668
|
}
|
25182
24669
|
|
25183
24670
|
AliasedProperty.prototype.setup = function (obj, keyName) {
|
25184
|
-
false && emberDebug.assert('Setting alias \'' + keyName + '\' on self', this.altKey !== keyName);
|
24671
|
+
false && !(this.altKey !== keyName) && emberDebug.assert('Setting alias \'' + keyName + '\' on self', this.altKey !== keyName);
|
25185
24672
|
|
25186
24673
|
var meta$$1 = meta(obj);
|
25187
24674
|
if (meta$$1.peekWatching(keyName)) {
|
@@ -26066,7 +25553,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26066
25553
|
@public
|
26067
25554
|
*/
|
26068
25555
|
run$1.schedule = function () /* queue, target, method */{
|
26069
|
-
false && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
|
25556
|
+
false && !(run$1.currentRunLoop || !emberDebug.isTesting()) && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
|
26070
25557
|
|
26071
25558
|
return backburner.schedule.apply(backburner, arguments);
|
26072
25559
|
};
|
@@ -26150,7 +25637,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26150
25637
|
run$1.once = function () {
|
26151
25638
|
var _len3, args, _key3;
|
26152
25639
|
|
26153
|
-
false && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
|
25640
|
+
false && !(run$1.currentRunLoop || !emberDebug.isTesting()) && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
|
26154
25641
|
|
26155
25642
|
for (_len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
26156
25643
|
args[_key3] = arguments[_key3];
|
@@ -26213,7 +25700,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
26213
25700
|
@public
|
26214
25701
|
*/
|
26215
25702
|
run$1.scheduleOnce = function () /*queue, target, method*/{
|
26216
|
-
false && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
|
25703
|
+
false && !(run$1.currentRunLoop || !emberDebug.isTesting()) && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
|
26217
25704
|
|
26218
25705
|
return backburner.scheduleOnce.apply(backburner, arguments);
|
26219
25706
|
};
|
@@ -27297,7 +26784,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27297
26784
|
*/
|
27298
26785
|
|
27299
26786
|
Binding.prototype.connect = function (obj) {
|
27300
|
-
false && emberDebug.assert('Must pass a valid object to Ember.Binding.connect()', !!obj);
|
26787
|
+
false && !!!obj && emberDebug.assert('Must pass a valid object to Ember.Binding.connect()', !!obj);
|
27301
26788
|
|
27302
26789
|
var fromObj = void 0,
|
27303
26790
|
fromPath = void 0,
|
@@ -27353,7 +26840,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27353
26840
|
*/
|
27354
26841
|
|
27355
26842
|
Binding.prototype.disconnect = function () {
|
27356
|
-
false && emberDebug.assert('Must pass a valid object to Ember.Binding.disconnect()', !!this._toObj);
|
26843
|
+
false && !!!this._toObj && emberDebug.assert('Must pass a valid object to Ember.Binding.disconnect()', !!this._toObj);
|
27357
26844
|
|
27358
26845
|
// Remove an observer on the object so we're no longer notified of
|
27359
26846
|
// changes that should update bindings.
|
@@ -27846,7 +27333,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
27846
27333
|
|
27847
27334
|
for (i = 0; i < mixins.length; i++) {
|
27848
27335
|
currentMixin = mixins[i];
|
27849
|
-
false && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
|
27336
|
+
false && !(typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]') && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
|
27850
27337
|
|
27851
27338
|
props = mixinProperties(meta$$1, currentMixin);
|
27852
27339
|
if (props === CONTINUE) {
|
@@ -28217,7 +27704,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28217
27704
|
|
28218
27705
|
for (idx = 0; idx < arguments.length; idx++) {
|
28219
27706
|
currentMixin = arguments[idx];
|
28220
|
-
false && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
|
27707
|
+
false && !(typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]') && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
|
28221
27708
|
|
28222
27709
|
if (currentMixin instanceof Mixin) {
|
28223
27710
|
mixins.push(currentMixin);
|
@@ -28511,8 +27998,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28511
27998
|
var desc = this[keyName];
|
28512
27999
|
var owner = emberUtils.getOwner(this) || this.container; // fallback to `container` for backwards compat
|
28513
28000
|
|
28514
|
-
false && emberDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type);
|
28515
|
-
false && emberDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);
|
28001
|
+
false && !(desc && desc.isDescriptor && desc.type) && emberDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type);
|
28002
|
+
false && !owner && emberDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);
|
28516
28003
|
|
28517
28004
|
return owner.lookup(desc.type + ':' + (desc.name || keyName));
|
28518
28005
|
}
|
@@ -28861,7 +28348,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
28861
28348
|
for (i = 0; i < arguments.length; i++) {
|
28862
28349
|
arg = arguments[i];
|
28863
28350
|
|
28864
|
-
false && emberDebug.assert('Immediate observers must observe internal properties only, not properties on other objects.', typeof arg !== 'string' || arg.indexOf('.') === -1);
|
28351
|
+
false && !(typeof arg !== 'string' || arg.indexOf('.') === -1) && emberDebug.assert('Immediate observers must observe internal properties only, not properties on other objects.', typeof arg !== 'string' || arg.indexOf('.') === -1);
|
28865
28352
|
}
|
28866
28353
|
|
28867
28354
|
return observer.apply(this, arguments);
|
@@ -29221,10 +28708,10 @@ enifed('ember-routing/location/api', ['exports', 'ember-debug', 'ember-environme
|
|
29221
28708
|
*/
|
29222
28709
|
create: function (options) {
|
29223
28710
|
var implementation = options && options.implementation;
|
29224
|
-
false && (0, _emberDebug.assert)('Ember.Location.create: you must specify a \'implementation\' option', !!implementation);
|
28711
|
+
false && !!!implementation && (0, _emberDebug.assert)('Ember.Location.create: you must specify a \'implementation\' option', !!implementation);
|
29225
28712
|
|
29226
28713
|
var implementationClass = this.implementations[implementation];
|
29227
|
-
false && (0, _emberDebug.assert)('Ember.Location.create: ' + implementation + ' is not a valid implementation', !!implementationClass);
|
28714
|
+
false && !!!implementationClass && (0, _emberDebug.assert)('Ember.Location.create: ' + implementation + ' is not a valid implementation', !!implementationClass);
|
29228
28715
|
|
29229
28716
|
return implementationClass.create.apply(implementationClass, arguments);
|
29230
28717
|
},
|
@@ -29317,7 +28804,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
|
|
29317
28804
|
detect: function () {
|
29318
28805
|
var rootURL = this.rootURL;
|
29319
28806
|
|
29320
|
-
false && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/');
|
28807
|
+
false && !(rootURL.charAt(rootURL.length - 1) === '/') && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/');
|
29321
28808
|
|
29322
28809
|
var implementation = detectImplementation({
|
29323
28810
|
location: this.location,
|
@@ -29336,7 +28823,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
|
|
29336
28823
|
var concrete = (0, _emberUtils.getOwner)(this).lookup('location:' + implementation);
|
29337
28824
|
(0, _emberMetal.set)(concrete, 'rootURL', rootURL);
|
29338
28825
|
|
29339
|
-
false && (0, _emberDebug.assert)('Could not find location \'' + implementation + '\'.', !!concrete);
|
28826
|
+
false && !!!concrete && (0, _emberDebug.assert)('Could not find location \'' + implementation + '\'.', !!concrete);
|
29340
28827
|
|
29341
28828
|
(0, _emberMetal.set)(this, 'concreteImplementation', concrete);
|
29342
28829
|
},
|
@@ -29363,7 +28850,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
|
|
29363
28850
|
_len,
|
29364
28851
|
args,
|
29365
28852
|
_key;
|
29366
|
-
false && (0, _emberDebug.assert)('AutoLocation\'s detect() method should be called before calling any other hooks.', !!concreteImplementation);
|
28853
|
+
false && !!!concreteImplementation && (0, _emberDebug.assert)('AutoLocation\'s detect() method should be called before calling any other hooks.', !!concreteImplementation);
|
29367
28854
|
|
29368
28855
|
for (_len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
29369
28856
|
args[_key] = arguments[_key];
|
@@ -29457,7 +28944,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
|
|
29457
28944
|
var routeHash = void 0,
|
29458
28945
|
hashParts = void 0;
|
29459
28946
|
|
29460
|
-
false && (0, _emberDebug.assert)('Path ' + path + ' does not start with the provided rootURL ' + rootURL, rootURLIndex === 0);
|
28947
|
+
false && !(rootURLIndex === 0) && (0, _emberDebug.assert)('Path ' + path + ' does not start with the provided rootURL ' + rootURL, rootURLIndex === 0);
|
29461
28948
|
|
29462
28949
|
// By convention, Ember.js routes using HashLocation are required to start
|
29463
28950
|
// with `#/`. Anything else should NOT be considered a route and should
|
@@ -29904,7 +29391,7 @@ enifed('ember-routing/location/none_location', ['exports', 'ember-metal', 'ember
|
|
29904
29391
|
detect: function () {
|
29905
29392
|
var rootURL = this.rootURL;
|
29906
29393
|
|
29907
|
-
false && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/');
|
29394
|
+
false && !(rootURL.charAt(rootURL.length - 1) === '/') && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/');
|
29908
29395
|
},
|
29909
29396
|
|
29910
29397
|
/**
|
@@ -30318,12 +29805,16 @@ enifed('ember-routing/system/dsl', ['exports', 'ember-utils', 'ember-debug'], fu
|
|
30318
29805
|
options = {};
|
30319
29806
|
}
|
30320
29807
|
|
30321
|
-
false &&
|
29808
|
+
false && !function () {
|
30322
29809
|
if (options.overrideNameAssertion === true) {
|
30323
29810
|
return true;
|
30324
29811
|
}
|
30325
29812
|
|
30326
29813
|
return ['array', 'basic', 'object', 'application'].indexOf(name) === -1;
|
29814
|
+
}() && (0, _emberDebug.assert)('\'' + name + '\' cannot be used as a route name.', function () {
|
29815
|
+
if (options.overrideNameAssertion === true) {
|
29816
|
+
return true;
|
29817
|
+
}return ['array', 'basic', 'object', 'application'].indexOf(name) === -1;
|
30327
29818
|
}());
|
30328
29819
|
|
30329
29820
|
if (this.enableLoadingSubstates) {
|
@@ -30889,7 +30380,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
30889
30380
|
var queryParams = getQueryParamsFor(route, state);
|
30890
30381
|
|
30891
30382
|
return Object.keys(queryParams).reduce(function (params, key) {
|
30892
|
-
false && (0, _emberDebug.assert)('The route \'' + _this2.routeName + '\' has both a dynamic segment and query param with name \'' + key + '\'. Please rename one to avoid collisions.', !params[key]);
|
30383
|
+
false && !!params[key] && (0, _emberDebug.assert)('The route \'' + _this2.routeName + '\' has both a dynamic segment and query param with name \'' + key + '\'. Please rename one to avoid collisions.', !params[key]);
|
30893
30384
|
|
30894
30385
|
params[key] = queryParams[key];
|
30895
30386
|
return params;
|
@@ -31600,7 +31091,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31600
31091
|
find: function (name, value) {
|
31601
31092
|
var modelClass = owner.factoryFor('model:' + name);
|
31602
31093
|
|
31603
|
-
false && (0, _emberDebug.assert)('You used the dynamic segment ' + name + '_id in your route ' + routeName + ', but ' + namespace + '.' + _emberRuntime.String.classify(name) + ' did not exist and you did not override your route\'s `model` hook.', !!modelClass);
|
31094
|
+
false && !!!modelClass && (0, _emberDebug.assert)('You used the dynamic segment ' + name + '_id in your route ' + routeName + ', but ' + namespace + '.' + _emberRuntime.String.classify(name) + ' did not exist and you did not override your route\'s `model` hook.', !!modelClass);
|
31604
31095
|
|
31605
31096
|
if (!modelClass) {
|
31606
31097
|
return;
|
@@ -31608,7 +31099,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31608
31099
|
|
31609
31100
|
modelClass = modelClass.class;
|
31610
31101
|
|
31611
|
-
false && (0, _emberDebug.assert)(_emberRuntime.String.classify(name) + ' has no method `find`.', typeof modelClass.find === 'function');
|
31102
|
+
false && !(typeof modelClass.find === 'function') && (0, _emberDebug.assert)(_emberRuntime.String.classify(name) + ' has no method `find`.', typeof modelClass.find === 'function');
|
31612
31103
|
|
31613
31104
|
return modelClass.find(value);
|
31614
31105
|
}
|
@@ -31672,7 +31163,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31672
31163
|
// NOTE: We're specifically checking that skipAssert is true, because according
|
31673
31164
|
// to the old API the second parameter was model. We do not want people who
|
31674
31165
|
// passed a model to skip the assertion.
|
31675
|
-
false && (0, _emberDebug.assert)('The controller named \'' + name + '\' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.', controller || _skipAssert === true);
|
31166
|
+
false && !(controller || _skipAssert === true) && (0, _emberDebug.assert)('The controller named \'' + name + '\' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.', controller || _skipAssert === true);
|
31676
31167
|
|
31677
31168
|
return controller;
|
31678
31169
|
},
|
@@ -31713,7 +31204,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31713
31204
|
this.render();
|
31714
31205
|
},
|
31715
31206
|
render: function (_name, options) {
|
31716
|
-
false && (0, _emberDebug.assert)('The name in the given arguments is undefined', arguments.length > 0 ? !(0, _emberMetal.isNone)(arguments[0]) : true);
|
31207
|
+
false && !(arguments.length > 0 ? !(0, _emberMetal.isNone)(arguments[0]) : true) && (0, _emberDebug.assert)('The name in the given arguments is undefined', arguments.length > 0 ? !(0, _emberMetal.isNone)(arguments[0]) : true);
|
31717
31208
|
|
31718
31209
|
var isDefaultRender = arguments.length === 0 || (0, _emberMetal.isEmpty)(arguments[0]);
|
31719
31210
|
var name = void 0;
|
@@ -31882,7 +31373,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
|
|
31882
31373
|
ViewClass: undefined
|
31883
31374
|
};
|
31884
31375
|
|
31885
|
-
false && (0, _emberDebug.assert)('Could not find "' + name + '" template, view, or component.', isDefaultRender || template);
|
31376
|
+
false && !(isDefaultRender || template) && (0, _emberDebug.assert)('Could not find "' + name + '" template, view, or component.', isDefaultRender || template);
|
31886
31377
|
|
31887
31378
|
return renderOptions;
|
31888
31379
|
}
|
@@ -32567,7 +32058,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
32567
32058
|
var _routerMicrolib5;
|
32568
32059
|
|
32569
32060
|
var targetRouteName = _targetRouteName || (0, _utils.getActiveTargetName)(this._routerMicrolib);
|
32570
|
-
false && (0, _emberDebug.assert)('The route ' + targetRouteName + ' was not found', targetRouteName && this._routerMicrolib.hasRoute(targetRouteName));
|
32061
|
+
false && !(targetRouteName && this._routerMicrolib.hasRoute(targetRouteName)) && (0, _emberDebug.assert)('The route ' + targetRouteName + ' was not found', targetRouteName && this._routerMicrolib.hasRoute(targetRouteName));
|
32571
32062
|
|
32572
32063
|
var queryParams = {};
|
32573
32064
|
|
@@ -32652,7 +32143,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
32652
32143
|
if (qpOther && qpOther.controllerName !== qp.controllerName) {
|
32653
32144
|
otherQP = qpsByUrlKey[urlKey];
|
32654
32145
|
|
32655
|
-
false && (0, _emberDebug.assert)('You\'re not allowed to have more than one controller property map to the same query param key, but both `' + otherQP.scopedPropertyName + '` and `' + qp.scopedPropertyName + '` map to `' + urlKey + '`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `' + otherQP.prop + ': { as: \'other-' + otherQP.prop + '\' }`', false);
|
32146
|
+
false && !false && (0, _emberDebug.assert)('You\'re not allowed to have more than one controller property map to the same query param key, but both `' + otherQP.scopedPropertyName + '` and `' + qp.scopedPropertyName + '` map to `' + urlKey + '`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `' + otherQP.prop + ': { as: \'other-' + otherQP.prop + '\' }`', false);
|
32656
32147
|
}
|
32657
32148
|
|
32658
32149
|
qpsByUrlKey[urlKey] = qp;
|
@@ -32799,7 +32290,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
32799
32290
|
owner = (0, _emberUtils.getOwner)(this);
|
32800
32291
|
|
32801
32292
|
|
32802
|
-
false && (0, _emberDebug.assert)('You attempted to mount the engine \'' + name + '\' in your router map, but the engine can not be found.', owner.hasRegistration('engine:' + name));
|
32293
|
+
false && !owner.hasRegistration('engine:' + name) && (0, _emberDebug.assert)('You attempted to mount the engine \'' + name + '\' in your router map, but the engine can not be found.', owner.hasRegistration('engine:' + name));
|
32803
32294
|
|
32804
32295
|
engineInstance = owner.buildChildEngineInstance(name, {
|
32805
32296
|
routable: true,
|
@@ -33022,7 +32513,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33022
32513
|
if (ignoreFailure) {
|
33023
32514
|
return;
|
33024
32515
|
}
|
33025
|
-
throw new _emberDebug.
|
32516
|
+
throw new _emberDebug.Error('Can\'t trigger action \'' + name + '\' because your app hasn\'t finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks.');
|
33026
32517
|
}
|
33027
32518
|
|
33028
32519
|
var eventWasHandled = false;
|
@@ -33054,7 +32545,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33054
32545
|
}
|
33055
32546
|
|
33056
32547
|
if (!eventWasHandled && !ignoreFailure) {
|
33057
|
-
throw new _emberDebug.
|
32548
|
+
throw new _emberDebug.Error('Nothing handled the action \'' + name + '\'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.');
|
33058
32549
|
}
|
33059
32550
|
}
|
33060
32551
|
|
@@ -33285,7 +32776,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
|
|
33285
32776
|
}
|
33286
32777
|
liveRoutes.outlets.__ember_orphans__.outlets[into] = myState;
|
33287
32778
|
_emberMetal.run.schedule('afterRender', function () {
|
33288
|
-
false && (0, _emberDebug.assert)('You attempted to render into \'' + into + '\' but it was not found', liveRoutes.outlets.__ember_orphans__.outlets[into].wasUsed);
|
32779
|
+
false && !liveRoutes.outlets.__ember_orphans__.outlets[into].wasUsed && (0, _emberDebug.assert)('You attempted to render into \'' + into + '\' but it was not found', liveRoutes.outlets.__ember_orphans__.outlets[into].wasUsed);
|
33289
32780
|
});
|
33290
32781
|
}
|
33291
32782
|
|
@@ -34343,7 +33834,7 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
|
|
34343
33834
|
for (i = 0; i < properties.length; i++) {
|
34344
33835
|
property = properties[i];
|
34345
33836
|
|
34346
|
-
false && (0, _emberDebug.assert)('Dependent keys passed to Ember.computed.' + predicateName + '() can\'t have spaces.', property.indexOf(' ') < 0);
|
33837
|
+
false && !(property.indexOf(' ') < 0) && (0, _emberDebug.assert)('Dependent keys passed to Ember.computed.' + predicateName + '() can\'t have spaces.', property.indexOf(' ') < 0);
|
34347
33838
|
|
34348
33839
|
(0, _emberMetal.expandProperties)(property, extractProperty);
|
34349
33840
|
}
|
@@ -34612,7 +34103,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
34612
34103
|
@public
|
34613
34104
|
*/
|
34614
34105
|
function (dependentKey, propertyKey) {
|
34615
|
-
false && (0, _emberDebug.assert)('Ember.computed.mapBy expects a property string for its second argument, ' + 'perhaps you meant to use "map"', typeof propertyKey === 'string');
|
34106
|
+
false && !(typeof propertyKey === 'string') && (0, _emberDebug.assert)('Ember.computed.mapBy expects a property string for its second argument, ' + 'perhaps you meant to use "map"', typeof propertyKey === 'string');
|
34616
34107
|
|
34617
34108
|
return map(dependentKey + '.@each.' + propertyKey, function (item) {
|
34618
34109
|
return (0, _emberMetal.get)(item, propertyKey);
|
@@ -35083,7 +34574,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35083
34574
|
*/
|
35084
34575
|
;
|
35085
34576
|
exports.sort = function (itemsKey, sortDefinition) {
|
35086
|
-
false && (0, _emberDebug.assert)('Ember.computed.sort requires two arguments: an array key to sort and ' + 'either a sort properties key or sort function', arguments.length === 2);
|
34577
|
+
false && !(arguments.length === 2) && (0, _emberDebug.assert)('Ember.computed.sort requires two arguments: an array key to sort and ' + 'either a sort properties key or sort function', arguments.length === 2);
|
35087
34578
|
|
35088
34579
|
if (typeof sortDefinition === 'function') {
|
35089
34580
|
return customSort(itemsKey, sortDefinition);
|
@@ -35197,7 +34688,9 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
|
|
35197
34688
|
var itemsKeyIsAtThis = itemsKey === '@this';
|
35198
34689
|
var sortProperties = (0, _emberMetal.get)(this, sortPropertiesKey);
|
35199
34690
|
|
35200
|
-
false && (
|
34691
|
+
false && !((0, _utils.isArray)(sortProperties) && sortProperties.every(function (s) {
|
34692
|
+
return typeof s === 'string';
|
34693
|
+
})) && (0, _emberDebug.assert)('The sort definition for \'' + key + '\' on ' + this + ' must be a function or an array of strings', (0, _utils.isArray)(sortProperties) && sortProperties.every(function (s) {
|
35201
34694
|
return typeof s === 'string';
|
35202
34695
|
}));
|
35203
34696
|
|
@@ -35324,7 +34817,7 @@ enifed('ember-runtime/controllers/controller', ['exports', 'ember-debug', 'ember
|
|
35324
34817
|
@public
|
35325
34818
|
*/
|
35326
34819
|
(0, _inject.createInjectionHelper)('controller', function (factory) {
|
35327
|
-
false && (0, _emberDebug.assert)('Defining an injected controller property on a ' + 'non-controller is not allowed.', _controller.default.detect(factory.PrototypeMixin));
|
34820
|
+
false && !_controller.default.detect(factory.PrototypeMixin) && (0, _emberDebug.assert)('Defining an injected controller property on a ' + 'non-controller is not allowed.', _controller.default.detect(factory.PrototypeMixin));
|
35328
34821
|
});
|
35329
34822
|
|
35330
34823
|
exports.default = Controller;
|
@@ -35380,7 +34873,7 @@ enifed('ember-runtime/copy', ['exports', 'ember-debug', 'ember-runtime/system/ob
|
|
35380
34873
|
return copies[loc];
|
35381
34874
|
}
|
35382
34875
|
|
35383
|
-
false && (0, _emberDebug.assert)('Cannot clone an Ember.Object that does not implement Ember.Copyable', !(obj instanceof _object.default) || _copyable.default && _copyable.default.detect(obj));
|
34876
|
+
false && !(!(obj instanceof _object.default) || _copyable.default && _copyable.default.detect(obj)) && (0, _emberDebug.assert)('Cannot clone an Ember.Object that does not implement Ember.Copyable', !(obj instanceof _object.default) || _copyable.default && _copyable.default.detect(obj));
|
35384
34877
|
|
35385
34878
|
// IMPORTANT: this specific test will detect a native array only. Any other
|
35386
34879
|
// object will need to implement Copyable.
|
@@ -35521,7 +35014,7 @@ enifed('ember-runtime/ext/function', ['ember-environment', 'ember-metal', 'ember
|
|
35521
35014
|
};
|
35522
35015
|
|
35523
35016
|
FunctionPrototype._observesImmediately = function () {
|
35524
|
-
false &&
|
35017
|
+
false && !function () {
|
35525
35018
|
var i;
|
35526
35019
|
|
35527
35020
|
for (i = 0; i < arguments.length; i++) {
|
@@ -35530,6 +35023,14 @@ enifed('ember-runtime/ext/function', ['ember-environment', 'ember-metal', 'ember
|
|
35530
35023
|
}
|
35531
35024
|
}
|
35532
35025
|
return true;
|
35026
|
+
} && (0, _emberDebug.assert)('Immediate observers must observe internal properties only, ' + 'not properties on other objects.', function () {
|
35027
|
+
var i;
|
35028
|
+
|
35029
|
+
for (i = 0; i < arguments.length; i++) {
|
35030
|
+
if (arguments[i].indexOf('.') !== -1) {
|
35031
|
+
return false;
|
35032
|
+
}
|
35033
|
+
}return true;
|
35533
35034
|
});
|
35534
35035
|
|
35535
35036
|
// observes handles property expansion
|
@@ -35618,7 +35119,7 @@ enifed('ember-runtime/ext/rsvp', ['exports', 'rsvp', 'ember-metal', 'ember-debug
|
|
35618
35119
|
}
|
35619
35120
|
|
35620
35121
|
if (reason.name === 'UnrecognizedURLError') {
|
35621
|
-
false && (0, _emberDebug.assert)('The URL \'' + reason.message + '\' did not match any routes in your application', false);
|
35122
|
+
false && !false && (0, _emberDebug.assert)('The URL \'' + reason.message + '\' did not match any routes in your application', false);
|
35622
35123
|
|
35623
35124
|
return;
|
35624
35125
|
}
|
@@ -36319,7 +35820,7 @@ enifed('ember-runtime/inject', ['exports', 'ember-metal', 'ember-debug'], functi
|
|
36319
35820
|
@public
|
36320
35821
|
*/
|
36321
35822
|
function inject() {
|
36322
|
-
false && (0, _emberDebug.assert)('Injected properties must be created through helpers, see \'' + Object.keys(inject).join('"', '"') + '\'');
|
35823
|
+
false && !false && (0, _emberDebug.assert)('Injected properties must be created through helpers, see \'' + Object.keys(inject).join('"', '"') + '\'');
|
36323
35824
|
}
|
36324
35825
|
|
36325
35826
|
// Dictionary of injection validations by type, added to by `createInjectionHelper`
|
@@ -36482,7 +35983,7 @@ enifed('ember-runtime/mixins/-proxy', ['exports', 'ember-babel', '@glimmer/refer
|
|
36482
35983
|
}
|
36483
35984
|
|
36484
35985
|
var content = (0, _emberMetal.get)(this, 'content');
|
36485
|
-
false && (0, _emberDebug.assert)('Cannot delegate set(\'' + key + '\', ' + value + ') to the \'content\' property of object proxy ' + this + ': its \'content\' is undefined.', content);
|
35986
|
+
false && !content && (0, _emberDebug.assert)('Cannot delegate set(\'' + key + '\', ' + value + ') to the \'content\' property of object proxy ' + this + ': its \'content\' is undefined.', content);
|
36486
35987
|
false && !!this.isController && (0, _emberDebug.deprecate)('You attempted to set `' + key + '` from `' + this + '`, but object proxying is deprecated. Please use `model.' + key + '` instead.', !this.isController, { id: 'ember-runtime.controller-proxy', until: '3.0.0' });
|
36487
35988
|
|
36488
35989
|
return (0, _emberMetal.set)(content, key, value);
|
@@ -36497,7 +35998,7 @@ enifed('ember-runtime/mixins/action_handler', ['exports', 'ember-metal', 'ember-
|
|
36497
35998
|
configurable: true,
|
36498
35999
|
enumerable: false,
|
36499
36000
|
set: function () {
|
36500
|
-
false && (0, _emberDebug.assert)('You cannot set `_actions` on ' + this + ', please use `actions` instead.');
|
36001
|
+
false && !false && (0, _emberDebug.assert)('You cannot set `_actions` on ' + this + ', please use `actions` instead.');
|
36501
36002
|
},
|
36502
36003
|
get: function () {
|
36503
36004
|
false && !false && (0, _emberDebug.deprecate)('Usage of `_actions` is deprecated, use `actions` instead.', false, { id: 'ember-runtime.action-handler-_actions', until: '3.0.0' });
|
@@ -36545,13 +36046,13 @@ enifed('ember-runtime/mixins/action_handler', ['exports', 'ember-metal', 'ember-
|
|
36545
36046
|
_key,
|
36546
36047
|
shouldBubble;
|
36547
36048
|
if (target) {
|
36548
|
-
false && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function');
|
36049
|
+
false && !(typeof target.send === 'function') && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function');
|
36549
36050
|
|
36550
36051
|
target.send.apply(target, arguments);
|
36551
36052
|
}
|
36552
36053
|
},
|
36553
36054
|
willMergeMixin: function (props) {
|
36554
|
-
false && (0, _emberDebug.assert)('Specifying `_actions` and `actions` in the same mixin is not supported.', !props.actions || !props._actions);
|
36055
|
+
false && !(!props.actions || !props._actions) && (0, _emberDebug.assert)('Specifying `_actions` and `actions` in the same mixin is not supported.', !props.actions || !props._actions);
|
36555
36056
|
|
36556
36057
|
if (props._actions) {
|
36557
36058
|
false && !false && (0, _emberDebug.deprecate)('Specifying actions in `_actions` is deprecated, please use `actions` instead.', false, { id: 'ember-runtime.action-handler-_actions', until: '3.0.0' });
|
@@ -36981,7 +36482,7 @@ enifed('ember-runtime/mixins/array', ['exports', 'ember-utils', 'ember-metal', '
|
|
36981
36482
|
item = objectAt(content, loc);
|
36982
36483
|
|
36983
36484
|
if (item) {
|
36984
|
-
false && (0, _emberDebug.assert)('When using @each to observe the array ' + content + ', the array must return an object', typeof item === 'object');
|
36485
|
+
false && !(typeof item === 'object') && (0, _emberDebug.assert)('When using @each to observe the array ' + content + ', the array must return an object', typeof item === 'object');
|
36985
36486
|
|
36986
36487
|
(0, _emberMetal._addBeforeObserver)(item, keyName, proxy, 'contentKeyWillChange');
|
36987
36488
|
(0, _emberMetal.addObserver)(item, keyName, proxy, 'contentKeyDidChange');
|
@@ -37779,7 +37280,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
|
|
37779
37280
|
return ret;
|
37780
37281
|
},
|
37781
37282
|
includes: function (obj) {
|
37782
|
-
false && (0, _emberDebug.assert)('Enumerable#includes cannot accept a second argument "startAt" as enumerable items are unordered.', arguments.length === 1);
|
37283
|
+
false && !(arguments.length === 1) && (0, _emberDebug.assert)('Enumerable#includes cannot accept a second argument "startAt" as enumerable items are unordered.', arguments.length === 1);
|
37783
37284
|
|
37784
37285
|
var len = (0, _emberMetal.get)(this, 'length');
|
37785
37286
|
var idx = void 0,
|
@@ -38747,7 +38248,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
|
|
38747
38248
|
if ((0, _emberMetal.isNone)(increment)) {
|
38748
38249
|
increment = 1;
|
38749
38250
|
}
|
38750
|
-
false && (0, _emberDebug.assert)('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment));
|
38251
|
+
false && !(!isNaN(parseFloat(increment)) && isFinite(increment)) && (0, _emberDebug.assert)('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment));
|
38751
38252
|
|
38752
38253
|
return (0, _emberMetal.set)(this, keyName, (parseFloat((0, _emberMetal.get)(this, keyName)) || 0) + increment);
|
38753
38254
|
},
|
@@ -38768,7 +38269,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
|
|
38768
38269
|
if ((0, _emberMetal.isNone)(decrement)) {
|
38769
38270
|
decrement = 1;
|
38770
38271
|
}
|
38771
|
-
false && (0, _emberDebug.assert)('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement));
|
38272
|
+
false && !(!isNaN(parseFloat(decrement)) && isFinite(decrement)) && (0, _emberDebug.assert)('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement));
|
38772
38273
|
|
38773
38274
|
return (0, _emberMetal.set)(this, keyName, ((0, _emberMetal.get)(this, keyName) || 0) - decrement);
|
38774
38275
|
},
|
@@ -39211,10 +38712,6 @@ enifed('ember-runtime/mixins/registry_proxy', ['exports', 'ember-metal', 'ember-
|
|
39211
38712
|
classes that are instantiated by Ember itself. Instantiating a class
|
39212
38713
|
directly (via `create` or `new`) bypasses the dependency injection
|
39213
38714
|
system.
|
39214
|
-
**Note:** Ember-Data instantiates its models in a unique manner, and consequently
|
39215
|
-
injections onto models (or all models) will not work as expected. Injections
|
39216
|
-
on models can be enabled by setting `EmberENV.MODEL_FACTORY_INJECTIONS`
|
39217
|
-
to `true`.
|
39218
38715
|
@public
|
39219
38716
|
@method inject
|
39220
38717
|
@param factoryNameOrType {String}
|
@@ -39352,7 +38849,7 @@ enifed('ember-runtime/mixins/target_action_support', ['exports', 'ember-environm
|
|
39352
38849
|
ret = (_target = target).send.apply(_target, args(actionContext, action));
|
39353
38850
|
} else {
|
39354
38851
|
|
39355
|
-
false && (0, _emberDebug.assert)('The action \'' + action + '\' did not exist on ' + target, typeof target[action] === 'function');
|
38852
|
+
false && !(typeof target[action] === 'function') && (0, _emberDebug.assert)('The action \'' + action + '\' did not exist on ' + target, typeof target[action] === 'function');
|
39356
38853
|
|
39357
38854
|
ret = (_target2 = target)[action].apply(_target2, args(actionContext));
|
39358
38855
|
}
|
@@ -39579,7 +39076,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
39579
39076
|
_contentDidChange: (0, _emberMetal.observer)('content', function () {
|
39580
39077
|
var content = (0, _emberMetal.get)(this, 'content');
|
39581
39078
|
|
39582
|
-
false && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', content !== this);
|
39079
|
+
false && !(content !== this) && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', content !== this);
|
39583
39080
|
|
39584
39081
|
this._setupContent();
|
39585
39082
|
}),
|
@@ -39588,7 +39085,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
39588
39085
|
var content = (0, _emberMetal.get)(this, 'content');
|
39589
39086
|
|
39590
39087
|
if (content) {
|
39591
|
-
false && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof content, (0, _utils.isArray)(content) || content.isDestroyed);
|
39088
|
+
false && !((0, _utils.isArray)(content) || content.isDestroyed) && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof content, (0, _utils.isArray)(content) || content.isDestroyed);
|
39592
39089
|
|
39593
39090
|
(0, _array.addArrayObserver)(content, this, {
|
39594
39091
|
willChange: 'contentArrayWillChange',
|
@@ -39611,7 +39108,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
39611
39108
|
var arrangedContent = (0, _emberMetal.get)(this, 'arrangedContent');
|
39612
39109
|
var len = arrangedContent ? (0, _emberMetal.get)(arrangedContent, 'length') : 0;
|
39613
39110
|
|
39614
|
-
false && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', arrangedContent !== this);
|
39111
|
+
false && !(arrangedContent !== this) && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', arrangedContent !== this);
|
39615
39112
|
|
39616
39113
|
this._setupArrangedContent();
|
39617
39114
|
|
@@ -39623,7 +39120,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
39623
39120
|
var arrangedContent = (0, _emberMetal.get)(this, 'arrangedContent');
|
39624
39121
|
|
39625
39122
|
if (arrangedContent) {
|
39626
|
-
false && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof arrangedContent, (0, _utils.isArray)(arrangedContent) || arrangedContent.isDestroyed);
|
39123
|
+
false && !((0, _utils.isArray)(arrangedContent) || arrangedContent.isDestroyed) && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof arrangedContent, (0, _utils.isArray)(arrangedContent) || arrangedContent.isDestroyed);
|
39627
39124
|
|
39628
39125
|
(0, _array.addArrayObserver)(arrangedContent, this, {
|
39629
39126
|
willChange: 'arrangedContentArrayWillChange',
|
@@ -39657,7 +39154,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
|
|
39657
39154
|
|
39658
39155
|
_replace: function (idx, amt, objects) {
|
39659
39156
|
var content = (0, _emberMetal.get)(this, 'content');
|
39660
|
-
false && (0, _emberDebug.assert)('The content property of ' + this.constructor + ' should be set before modifying it', content);
|
39157
|
+
false && !content && (0, _emberDebug.assert)('The content property of ' + this.constructor + ' should be set before modifying it', content);
|
39661
39158
|
|
39662
39159
|
if (content) {
|
39663
39160
|
this.replaceContent(idx, amt, objects);
|
@@ -39844,7 +39341,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
|
|
39844
39341
|
for (i = 0; i < props.length; i++) {
|
39845
39342
|
properties = props[i];
|
39846
39343
|
|
39847
|
-
false && (0, _emberDebug.assert)('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _emberMetal.Mixin));
|
39344
|
+
false && !!(properties instanceof _emberMetal.Mixin) && (0, _emberDebug.assert)('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _emberMetal.Mixin));
|
39848
39345
|
|
39849
39346
|
if (typeof properties !== 'object' && properties !== undefined) {
|
39850
39347
|
throw new _emberDebug.Error('Ember.Object.create only accepts objects.');
|
@@ -39870,9 +39367,9 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
|
|
39870
39367
|
desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;
|
39871
39368
|
|
39872
39369
|
|
39873
|
-
false && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !(value instanceof _emberMetal.ComputedProperty));
|
39874
|
-
false && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1));
|
39875
|
-
false && (0, _emberDebug.assert)('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && _action_handler.default.detect(this)));
|
39370
|
+
false && !!(value instanceof _emberMetal.ComputedProperty) && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !(value instanceof _emberMetal.ComputedProperty));
|
39371
|
+
false && !!(typeof value === 'function' && value.toString().indexOf('._super') !== -1) && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1));
|
39372
|
+
false && !!(keyName === 'actions' && _action_handler.default.detect(this)) && (0, _emberDebug.assert)('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && _action_handler.default.detect(this)));
|
39876
39373
|
|
39877
39374
|
if (concatenatedProperties && concatenatedProperties.length > 0 && concatenatedProperties.indexOf(keyName) >= 0) {
|
39878
39375
|
baseValue = this[keyName];
|
@@ -39992,7 +39489,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
|
|
39992
39489
|
return;
|
39993
39490
|
}
|
39994
39491
|
|
39995
|
-
false && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroyed` directly, please use ').destroy()(_templateObject), false);
|
39492
|
+
false && !false && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroyed` directly, please use ').destroy()(_templateObject), false);
|
39996
39493
|
}
|
39997
39494
|
}), _Mixin$create.isDestroying = (0, _emberMetal.descriptor)({
|
39998
39495
|
get: function () {
|
@@ -40004,7 +39501,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
|
|
40004
39501
|
return;
|
40005
39502
|
}
|
40006
39503
|
|
40007
|
-
false && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroying` directly, please use ').destroy()(_templateObject), false);
|
39504
|
+
false && !false && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroying` directly, please use ').destroy()(_templateObject), false);
|
40008
39505
|
}
|
40009
39506
|
}), _Mixin$create.destroy = function () {
|
40010
39507
|
var m = (0, _emberMetal.meta)(this);
|
@@ -40113,7 +39610,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
|
|
40113
39610
|
var possibleDesc = proto[key];
|
40114
39611
|
var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;
|
40115
39612
|
|
40116
|
-
false && (0, _emberDebug.assert)('metaForProperty() could not find a computed property with key \'' + key + '\'.', !!desc && desc instanceof _emberMetal.ComputedProperty);
|
39613
|
+
false && !(!!desc && desc instanceof _emberMetal.ComputedProperty) && (0, _emberDebug.assert)('metaForProperty() could not find a computed property with key \'' + key + '\'.', !!desc && desc instanceof _emberMetal.ComputedProperty);
|
40117
39614
|
|
40118
39615
|
return desc._meta || {};
|
40119
39616
|
}, _ClassMixinProps._computedProperties = (0, _emberMetal.computed)(function () {
|
@@ -41948,12 +41445,12 @@ enifed('ember-views/component_lookup', ['exports', 'ember-debug', 'ember-runtime
|
|
41948
41445
|
|
41949
41446
|
exports.default = _emberRuntime.Object.extend({
|
41950
41447
|
componentFor: function (name, owner, options) {
|
41951
|
-
false && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-'));
|
41448
|
+
false && !~name.indexOf('-') && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-'));
|
41952
41449
|
|
41953
41450
|
return owner.factoryFor('component:' + name, options);
|
41954
41451
|
},
|
41955
41452
|
layoutFor: function (name, owner, options) {
|
41956
|
-
false && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-'));
|
41453
|
+
false && !~name.indexOf('-') && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-'));
|
41957
41454
|
|
41958
41455
|
return owner.lookup('template:components/' + name, options);
|
41959
41456
|
}
|
@@ -42139,7 +41636,7 @@ enifed('ember-views/mixins/action_support', ['exports', 'ember-utils', 'ember-me
|
|
42139
41636
|
actionName = actionName.value;
|
42140
41637
|
}
|
42141
41638
|
|
42142
|
-
false && (0, _emberDebug.assert)('The default action was triggered on the component ' + component.toString() + ', but the action name (' + actionName + ') was not a string.', (0, _emberMetal.isNone)(actionName) || typeof actionName === 'string' || typeof actionName === 'function');
|
41639
|
+
false && !((0, _emberMetal.isNone)(actionName) || typeof actionName === 'string' || typeof actionName === 'function') && (0, _emberDebug.assert)('The default action was triggered on the component ' + component.toString() + ', but the action name (' + actionName + ') was not a string.', (0, _emberMetal.isNone)(actionName) || typeof actionName === 'string' || typeof actionName === 'function');
|
42143
41640
|
|
42144
41641
|
return actionName;
|
42145
41642
|
}
|
@@ -42271,11 +41768,11 @@ enifed('ember-views/mixins/action_support', ['exports', 'ember-utils', 'ember-me
|
|
42271
41768
|
|
42272
41769
|
var target = (0, _emberMetal.get)(this, 'target');
|
42273
41770
|
if (target) {
|
42274
|
-
false && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function');
|
41771
|
+
false && !(typeof target.send === 'function') && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function');
|
42275
41772
|
|
42276
41773
|
target.send.apply(target, arguments);
|
42277
41774
|
} else {
|
42278
|
-
false && (0, _emberDebug.assert)((0, _emberUtils.inspect)(this) + ' had no action handler for: ' + actionName, action);
|
41775
|
+
false && !action && (0, _emberDebug.assert)((0, _emberUtils.inspect)(this) + ' had no action handler for: ' + actionName, action);
|
42279
41776
|
}
|
42280
41777
|
}
|
42281
41778
|
});
|
@@ -42336,8 +41833,8 @@ enifed('ember-views/mixins/class_names_support', ['exports', 'ember-metal', 'emb
|
|
42336
41833
|
init: function () {
|
42337
41834
|
this._super.apply(this, arguments);
|
42338
41835
|
|
42339
|
-
false && (0, _emberDebug.assert)('Only arrays are allowed for \'classNameBindings\'', Array.isArray(this.classNameBindings));
|
42340
|
-
false && (0, _emberDebug.assert)('Only arrays of static class strings are allowed for \'classNames\'. For dynamic classes, use \'classNameBindings\'.', Array.isArray(this.classNames));
|
41836
|
+
false && !Array.isArray(this.classNameBindings) && (0, _emberDebug.assert)('Only arrays are allowed for \'classNameBindings\'', Array.isArray(this.classNameBindings));
|
41837
|
+
false && !Array.isArray(this.classNames) && (0, _emberDebug.assert)('Only arrays of static class strings are allowed for \'classNames\'. For dynamic classes, use \'classNameBindings\'.', Array.isArray(this.classNames));
|
42341
41838
|
},
|
42342
41839
|
|
42343
41840
|
/**
|
@@ -42816,7 +42313,7 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-utils', 'ember-meta
|
|
42816
42313
|
return this.renderer.getElement(this);
|
42817
42314
|
}
|
42818
42315
|
}), _Mixin$create.$ = function (sel) {
|
42819
|
-
false && (0, _emberDebug.assert)('You cannot access this.$() on a component with `tagName: \'\'` specified.', this.tagName !== '');
|
42316
|
+
false && !(this.tagName !== '') && (0, _emberDebug.assert)('You cannot access this.$() on a component with `tagName: \'\'` specified.', this.tagName !== '');
|
42820
42317
|
|
42821
42318
|
if (this.element) {
|
42822
42319
|
return sel ? (0, _jquery.default)(sel, this.element) : (0, _jquery.default)(this.element);
|
@@ -42828,9 +42325,9 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-utils', 'ember-meta
|
|
42828
42325
|
if (env.hasDOM) {
|
42829
42326
|
target = typeof selector === 'string' ? document.querySelector(selector) : selector;
|
42830
42327
|
|
42831
|
-
false && (0, _emberDebug.assert)('You tried to append to (' + selector + ') but that isn\'t in the DOM', target);
|
42832
|
-
false && (0, _emberDebug.assert)('You cannot append to an existing Ember.View.', !(0, _utils.matches)(target, '.ember-view'));
|
42833
|
-
false &&
|
42328
|
+
false && !target && (0, _emberDebug.assert)('You tried to append to (' + selector + ') but that isn\'t in the DOM', target);
|
42329
|
+
false && !!(0, _utils.matches)(target, '.ember-view') && (0, _emberDebug.assert)('You cannot append to an existing Ember.View.', !(0, _utils.matches)(target, '.ember-view'));
|
42330
|
+
false && !function () {
|
42834
42331
|
var node = target.parentNode;
|
42835
42332
|
while (node) {
|
42836
42333
|
if (node.nodeType !== 9 && (0, _utils.matches)(node, '.ember-view')) {
|
@@ -42841,12 +42338,18 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-utils', 'ember-meta
|
|
42841
42338
|
}
|
42842
42339
|
|
42843
42340
|
return true;
|
42341
|
+
}() && (0, _emberDebug.assert)('You cannot append to an existing Ember.View.', function () {
|
42342
|
+
var node = target.parentNode;while (node) {
|
42343
|
+
if (node.nodeType !== 9 && (0, _utils.matches)(node, '.ember-view')) {
|
42344
|
+
return false;
|
42345
|
+
}node = node.parentNode;
|
42346
|
+
}return true;
|
42844
42347
|
}());
|
42845
42348
|
} else {
|
42846
42349
|
target = selector;
|
42847
42350
|
|
42848
|
-
false && (0, _emberDebug.assert)('You tried to append to a selector string (' + selector + ') in an environment without jQuery', typeof target !== 'string');
|
42849
|
-
false && (0, _emberDebug.assert)('You tried to append to a non-Element (' + selector + ') in an environment without jQuery', typeof selector.appendChild === 'function');
|
42351
|
+
false && !(typeof target !== 'string') && (0, _emberDebug.assert)('You tried to append to a selector string (' + selector + ') in an environment without jQuery', typeof target !== 'string');
|
42352
|
+
false && !(typeof selector.appendChild === 'function') && (0, _emberDebug.assert)('You tried to append to a non-Element (' + selector + ') in an environment without jQuery', typeof selector.appendChild === 'function');
|
42850
42353
|
}
|
42851
42354
|
|
42852
42355
|
this.renderer.appendTo(this, target);
|
@@ -42919,7 +42422,7 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-utils', 'ember-meta
|
|
42919
42422
|
until: '2.13.0',
|
42920
42423
|
url: 'http://emberjs.com/deprecations/v2.x/#toc_arguments-in-component-lifecycle-hooks'
|
42921
42424
|
});
|
42922
|
-
false && (0, _emberDebug.assert)('Using a custom `.render` function is no longer supported.', !this.render);
|
42425
|
+
false && !!this.render && (0, _emberDebug.assert)('Using a custom `.render` function is no longer supported.', !this.render);
|
42923
42426
|
}, _Mixin$create.__defineNonEnumerable = function (property) {
|
42924
42427
|
this[property.name] = property.descriptor.value;
|
42925
42428
|
}, _Mixin$create.handleEvent = function (eventName, evt) {
|
@@ -43066,7 +42569,7 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
|
|
43066
42569
|
|
43067
42570
|
init: function () {
|
43068
42571
|
this._super();
|
43069
|
-
false && (0, _emberDebug.assert)('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', _emberEnvironment.environment.hasDOM);
|
42572
|
+
false && !_emberEnvironment.environment.hasDOM && (0, _emberDebug.assert)('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', _emberEnvironment.environment.hasDOM);
|
43070
42573
|
false && !!('canDispatchToEventManager' in this) && (0, _emberDebug.deprecate)('`canDispatchToEventManager` has been deprecated in ' + this + '.', !('canDispatchToEventManager' in this), {
|
43071
42574
|
id: 'ember-views.event-dispatcher.canDispatchToEventManager',
|
43072
42575
|
until: '2.16.0'
|
@@ -43095,9 +42598,9 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
|
|
43095
42598
|
|
43096
42599
|
rootElement = (0, _jquery.default)(rootElement);
|
43097
42600
|
|
43098
|
-
false && (0, _emberDebug.assert)('You cannot use the same root element (' + (rootElement.selector || rootElement[0].tagName) + ') multiple times in an Ember.Application', !rootElement.is(ROOT_ELEMENT_SELECTOR));
|
43099
|
-
false && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length);
|
43100
|
-
false && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length);
|
42601
|
+
false && !!rootElement.is(ROOT_ELEMENT_SELECTOR) && (0, _emberDebug.assert)('You cannot use the same root element (' + (rootElement.selector || rootElement[0].tagName) + ') multiple times in an Ember.Application', !rootElement.is(ROOT_ELEMENT_SELECTOR));
|
42602
|
+
false && !!rootElement.closest(ROOT_ELEMENT_SELECTOR).length && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length);
|
42603
|
+
false && !!rootElement.find(ROOT_ELEMENT_SELECTOR).length && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length);
|
43101
42604
|
|
43102
42605
|
rootElement.addClass(ROOT_ELEMENT_CLASS);
|
43103
42606
|
|
@@ -43275,7 +42778,7 @@ enifed('ember-views/system/lookup_partial', ['exports', 'ember-debug'], function
|
|
43275
42778
|
|
43276
42779
|
var template = templateFor(owner, parseUnderscoredName(templateName), templateName);
|
43277
42780
|
|
43278
|
-
false && (0, _emberDebug.assert)('Unable to find partial with name "' + templateName + '"', !!template);
|
42781
|
+
false && !!!template && (0, _emberDebug.assert)('Unable to find partial with name "' + templateName + '"', !!template);
|
43279
42782
|
|
43280
42783
|
return template;
|
43281
42784
|
};
|
@@ -43300,7 +42803,7 @@ enifed('ember-views/system/lookup_partial', ['exports', 'ember-debug'], function
|
|
43300
42803
|
if (!name) {
|
43301
42804
|
return;
|
43302
42805
|
}
|
43303
|
-
false && (0, _emberDebug.assert)('templateNames are not allowed to contain periods: ' + name, name.indexOf('.') === -1);
|
42806
|
+
false && !(name.indexOf('.') === -1) && (0, _emberDebug.assert)('templateNames are not allowed to contain periods: ' + name, name.indexOf('.') === -1);
|
43304
42807
|
|
43305
42808
|
if (!owner) {
|
43306
42809
|
throw new _emberDebug.Error('Container was not found when looking up a views template. ' + 'This is most likely due to manually instantiating an Ember.View. ' + 'See: http://git.io/EKPpnA');
|
@@ -43592,7 +43095,7 @@ enifed('ember-views/views/core_view', ['exports', 'ember-runtime', 'ember-views/
|
|
43592
43095
|
args,
|
43593
43096
|
i;
|
43594
43097
|
var method = this[name];
|
43595
|
-
if (method) {
|
43098
|
+
if (typeof method === 'function') {
|
43596
43099
|
args = new Array(arguments.length - 1);
|
43597
43100
|
|
43598
43101
|
for (i = 1; i < arguments.length; i++) {
|
@@ -43602,7 +43105,7 @@ enifed('ember-views/views/core_view', ['exports', 'ember-runtime', 'ember-views/
|
|
43602
43105
|
}
|
43603
43106
|
},
|
43604
43107
|
has: function (name) {
|
43605
|
-
return
|
43108
|
+
return typeof this[name] === 'function' || this._super(name);
|
43606
43109
|
}
|
43607
43110
|
});
|
43608
43111
|
|
@@ -43830,9 +43333,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
43830
43333
|
_emberMetal.default.assert = _emberDebug.assert;
|
43831
43334
|
_emberMetal.default.warn = _emberDebug.warn;
|
43832
43335
|
_emberMetal.default.debug = _emberDebug.debug;
|
43833
|
-
_emberMetal.default.deprecate =
|
43834
|
-
_emberMetal.default.deprecateFunc = function () {};
|
43835
|
-
|
43336
|
+
_emberMetal.default.deprecate = _emberDebug.deprecate;
|
43836
43337
|
_emberMetal.default.deprecateFunc = _emberDebug.deprecateFunc;
|
43837
43338
|
_emberMetal.default.runInDebug = _emberDebug.runInDebug;
|
43838
43339
|
/**
|
@@ -43975,17 +43476,6 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
43975
43476
|
enumerable: false
|
43976
43477
|
});
|
43977
43478
|
|
43978
|
-
Object.defineProperty(_emberMetal.default, 'MODEL_FACTORY_INJECTIONS', {
|
43979
|
-
get: function () {
|
43980
|
-
return _emberEnvironment.ENV.MODEL_FACTORY_INJECTIONS;
|
43981
|
-
},
|
43982
|
-
set: function (value) {
|
43983
|
-
_emberEnvironment.ENV.MODEL_FACTORY_INJECTIONS = !!value;
|
43984
|
-
},
|
43985
|
-
|
43986
|
-
enumerable: false
|
43987
|
-
});
|
43988
|
-
|
43989
43479
|
Object.defineProperty(_emberMetal.default, 'LOG_BINDINGS', {
|
43990
43480
|
get: function () {
|
43991
43481
|
return _emberEnvironment.ENV.LOG_BINDINGS;
|
@@ -44331,7 +43821,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
|
|
44331
43821
|
enifed("ember/version", ["exports"], function (exports) {
|
44332
43822
|
"use strict";
|
44333
43823
|
|
44334
|
-
exports.default = "2.14.0-beta.
|
43824
|
+
exports.default = "2.14.0-beta.3";
|
44335
43825
|
});
|
44336
43826
|
enifed('node-module', ['exports'], function(_exports) {
|
44337
43827
|
var IS_NODE = typeof module === 'object' && typeof module.require === 'function';
|
@@ -45692,7 +45182,18 @@ enifed('router', ['exports', 'route-recognizer', 'rsvp'], function (exports, _ro
|
|
45692
45182
|
// TODO: add tests for merged state retry()s
|
45693
45183
|
this.abort();
|
45694
45184
|
var newTransition = this.router.transitionByIntent(this.intent, false);
|
45695
|
-
|
45185
|
+
|
45186
|
+
// inheriting a `null` urlMethod is not valid
|
45187
|
+
// the urlMethod is only set to `null` when
|
45188
|
+
// the transition is initiated *after* the url
|
45189
|
+
// has been updated (i.e. `router.handleURL`)
|
45190
|
+
//
|
45191
|
+
// in that scenario, the url method cannot be
|
45192
|
+
// inherited for a new transition because then
|
45193
|
+
// the url would not update even though it should
|
45194
|
+
if (this.urlMethod !== null) {
|
45195
|
+
newTransition.method(this.urlMethod);
|
45196
|
+
}
|
45696
45197
|
return newTransition;
|
45697
45198
|
},
|
45698
45199
|
|