ember-source 2.16.0.beta.2 → 2.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.16.0-beta.2
9
+ * @version 2.16.0
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -1536,6 +1536,7 @@ enifed('ember-application/tests/system/application_instance_test', ['ember-babel
1536
1536
  appInstance = (0, _emberMetal.run)(function () {
1537
1537
  return _applicationInstance.default.create({ application: application });
1538
1538
  });
1539
+ appInstance.setupRegistry();
1539
1540
 
1540
1541
  application.customEvents = {
1541
1542
  awesome: 'sauce'
@@ -1555,6 +1556,7 @@ enifed('ember-application/tests/system/application_instance_test', ['ember-babel
1555
1556
  (0, _emberMetal.run)(function () {
1556
1557
  return appInstance = _applicationInstance.default.create({ application: application });
1557
1558
  });
1559
+ appInstance.setupRegistry();
1558
1560
 
1559
1561
  application.customEvents = {
1560
1562
  awesome: 'sauce'
@@ -1574,6 +1576,7 @@ enifed('ember-application/tests/system/application_instance_test', ['ember-babel
1574
1576
  appInstance = (0, _emberMetal.run)(function () {
1575
1577
  return _applicationInstance.default.create({ application: application });
1576
1578
  });
1579
+ appInstance.setupRegistry();
1577
1580
 
1578
1581
  appInstance.customEvents = {
1579
1582
  awesome: 'sauce'
@@ -5382,15 +5385,22 @@ enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-te
5382
5385
  });
5383
5386
  };
5384
5387
 
5385
- _class.prototype['@test visit() on engine resolves engine component'] = function (assert) {
5388
+ _class.prototype['@test visit() does not setup the event_dispatcher:main if isInteractive is false (with Engines) GH#15615'] = function (assert) {
5386
5389
  var _this8 = this;
5387
5390
 
5388
- assert.expect(2);
5391
+ assert.expect(3);
5389
5392
 
5390
5393
  this.router.map(function () {
5391
5394
  this.mount('blog');
5392
5395
  });
5393
5396
 
5397
+ this.addTemplate('application', '<h1>Hello world</h1>{{outlet}}');
5398
+ this.add('event_dispatcher:main', {
5399
+ create: function () {
5400
+ throw new Error('should not happen!');
5401
+ }
5402
+ });
5403
+
5394
5404
  // Register engine
5395
5405
  var BlogEngine = _engine.default.extend({
5396
5406
  init: function () {
@@ -5412,14 +5422,15 @@ enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-te
5412
5422
 
5413
5423
  this.add('route-map:blog', function () {});
5414
5424
 
5415
- assert.strictEqual(this.$().children().length, 0, 'there are no elements in the fixture element');
5425
+ assert.strictEqual(this.$('#qunit-fixture').children().length, 0, 'there are no elements in the fixture element');
5416
5426
 
5417
- return this.visit('/blog', { shouldRender: true }).then(function () {
5427
+ return this.visit('/blog', { isInteractive: false }).then(function (instance) {
5428
+ assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');
5418
5429
  assert.strictEqual(_this8.$().find('p').text(), 'Dis cache money', 'Engine component is resolved');
5419
5430
  });
5420
5431
  };
5421
5432
 
5422
- _class.prototype['@test visit() on engine resolves engine helper'] = function (assert) {
5433
+ _class.prototype['@test visit() on engine resolves engine component'] = function (assert) {
5423
5434
  var _this9 = this;
5424
5435
 
5425
5436
  assert.expect(2);
@@ -5437,6 +5448,43 @@ enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-te
5437
5448
  args[_key2] = arguments[_key2];
5438
5449
  }
5439
5450
 
5451
+ this._super.apply(this, args);
5452
+ this.register('template:application', (0, _emberTemplateCompiler.compile)('{{cache-money}}'));
5453
+ this.register('template:components/cache-money', (0, _emberTemplateCompiler.compile)('\n <p>Dis cache money</p>\n '));
5454
+ this.register('component:cache-money', _emberGlimmer.Component.extend({}));
5455
+ }
5456
+ });
5457
+ this.add('engine:blog', BlogEngine);
5458
+
5459
+ // Register engine route map
5460
+
5461
+ this.add('route-map:blog', function () {});
5462
+
5463
+ assert.strictEqual(this.$().children().length, 0, 'there are no elements in the fixture element');
5464
+
5465
+ return this.visit('/blog', { shouldRender: true }).then(function () {
5466
+ assert.strictEqual(_this9.$().find('p').text(), 'Dis cache money', 'Engine component is resolved');
5467
+ });
5468
+ };
5469
+
5470
+ _class.prototype['@test visit() on engine resolves engine helper'] = function (assert) {
5471
+ var _this10 = this;
5472
+
5473
+ assert.expect(2);
5474
+
5475
+ this.router.map(function () {
5476
+ this.mount('blog');
5477
+ });
5478
+
5479
+ // Register engine
5480
+ var BlogEngine = _engine.default.extend({
5481
+ init: function () {
5482
+ var _len3, args, _key3;
5483
+
5484
+ for (_len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5485
+ args[_key3] = arguments[_key3];
5486
+ }
5487
+
5440
5488
  this._super.apply(this, args);
5441
5489
  this.register('template:application', (0, _emberTemplateCompiler.compile)('{{swag}}'));
5442
5490
  this.register('helper:swag', (0, _emberGlimmer.helper)(function () {
@@ -5453,12 +5501,12 @@ enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-te
5453
5501
  assert.strictEqual(this.$().children().length, 0, 'there are no elements in the fixture element');
5454
5502
 
5455
5503
  return this.visit('/blog', { shouldRender: true }).then(function () {
5456
- assert.strictEqual(_this9.$().text(), 'turnt up', 'Engine component is resolved');
5504
+ assert.strictEqual(_this10.$().text(), 'turnt up', 'Engine component is resolved');
5457
5505
  });
5458
5506
  };
5459
5507
 
5460
5508
  _class.prototype['@test Ember Islands-style setup'] = function (assert) {
5461
- var _this10 = this;
5509
+ var _this11 = this;
5462
5510
 
5463
5511
  var xFooInitCalled = false;
5464
5512
  var xFooDidInsertElementCalled = false;
@@ -5545,9 +5593,9 @@ enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-te
5545
5593
  var instances = [];
5546
5594
 
5547
5595
  return _emberRuntime.RSVP.all([this.runTask(function () {
5548
- return _this10.application.visit('/x-foo?data=' + data, { rootElement: $foo[0] });
5596
+ return _this11.application.visit('/x-foo?data=' + data, { rootElement: $foo[0] });
5549
5597
  }), this.runTask(function () {
5550
- return _this10.application.visit('/x-bar', { rootElement: $bar[0] });
5598
+ return _this11.application.visit('/x-bar', { rootElement: $bar[0] });
5551
5599
  })]).then(function (_instances) {
5552
5600
  instances = _instances;
5553
5601
 
@@ -5565,14 +5613,14 @@ enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-te
5565
5613
  assert.equal($bar.find('button').text(), 'Join 0 others in clicking me!');
5566
5614
  assert.ok($bar.text().indexOf('X-Foo') === -1);
5567
5615
 
5568
- _this10.runTask(function () {
5616
+ _this11.runTask(function () {
5569
5617
  $foo.find('x-foo').click();
5570
5618
  });
5571
5619
 
5572
5620
  assert.equal($foo.find('p').text(), 'Hello Godfrey, I have been clicked 1 times (1 times combined)!');
5573
5621
  assert.equal($bar.find('button').text(), 'Join 1 others in clicking me!');
5574
5622
 
5575
- _this10.runTask(function () {
5623
+ _this11.runTask(function () {
5576
5624
  $bar.find('button').click();
5577
5625
  $bar.find('button').click();
5578
5626
  });
@@ -5580,7 +5628,7 @@ enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-te
5580
5628
  assert.equal($foo.find('p').text(), 'Hello Godfrey, I have been clicked 1 times (3 times combined)!');
5581
5629
  assert.equal($bar.find('button').text(), 'Join 3 others in clicking me!');
5582
5630
  }).finally(function () {
5583
- _this10.runTask(function () {
5631
+ _this11.runTask(function () {
5584
5632
  instances.forEach(function (instance) {
5585
5633
  instance.destroy();
5586
5634
  });
@@ -7193,9 +7241,34 @@ enifed('ember-extension-support/tests/data_adapter_test', ['ember-babel', 'ember
7193
7241
  });
7194
7242
  };
7195
7243
 
7196
- _class.prototype['@test Records Added'] = function () {
7244
+ _class.prototype['@test Model Types Updated but Unchanged Do not Trigger Callbacks'] = function () {
7197
7245
  var _this6 = this;
7198
7246
 
7247
+ expect(0);
7248
+ var records = (0, _emberRuntime.A)([1, 2, 3]);
7249
+ this.add('data-adapter:main', DataAdapter.extend({
7250
+ getRecords: function () {
7251
+ return records;
7252
+ }
7253
+ }));
7254
+ this.add('model:post', PostClass);
7255
+
7256
+ return this.visit('/').then(function () {
7257
+ adapter = _this6.applicationInstance.lookup('data-adapter:main');
7258
+
7259
+ adapter.watchModelTypes(function () {
7260
+ (0, _emberMetal.run)(function () {
7261
+ records.arrayContentDidChange(0, 0, 0);
7262
+ });
7263
+ }, function () {
7264
+ ok(false, "modelTypesUpdated should not be triggered if the array didn't change");
7265
+ });
7266
+ });
7267
+ };
7268
+
7269
+ _class.prototype['@test Records Added'] = function () {
7270
+ var _this7 = this;
7271
+
7199
7272
  var countAdded = 1;
7200
7273
  var post = PostClass.create();
7201
7274
  var recordList = (0, _emberRuntime.A)([post]);
@@ -7217,7 +7290,7 @@ enifed('ember-extension-support/tests/data_adapter_test', ['ember-babel', 'ember
7217
7290
  this.add('model:post', PostClass);
7218
7291
 
7219
7292
  return this.visit('/').then(function () {
7220
- adapter = _this6.applicationInstance.lookup('data-adapter:main');
7293
+ adapter = _this7.applicationInstance.lookup('data-adapter:main');
7221
7294
 
7222
7295
  adapter.watchRecords('post', function (records) {
7223
7296
  var record = records[0];
@@ -7233,7 +7306,7 @@ enifed('ember-extension-support/tests/data_adapter_test', ['ember-babel', 'ember
7233
7306
  };
7234
7307
 
7235
7308
  _class.prototype['@test Observes and releases a record correctly'] = function () {
7236
- var _this7 = this;
7309
+ var _this8 = this;
7237
7310
 
7238
7311
  var updatesCalled = 0;
7239
7312
  var post = PostClass.create({ title: 'Post' });
@@ -7260,7 +7333,7 @@ enifed('ember-extension-support/tests/data_adapter_test', ['ember-babel', 'ember
7260
7333
  this.add('model:post', PostClass);
7261
7334
 
7262
7335
  return this.visit('/').then(function () {
7263
- adapter = _this7.applicationInstance.lookup('data-adapter:main');
7336
+ adapter = _this8.applicationInstance.lookup('data-adapter:main');
7264
7337
 
7265
7338
  var release = adapter.watchRecords('post', function () {
7266
7339
  (0, _emberMetal.set)(post, 'title', 'Post Modified');
@@ -7275,12 +7348,12 @@ enifed('ember-extension-support/tests/data_adapter_test', ['ember-babel', 'ember
7275
7348
  };
7276
7349
 
7277
7350
  _class.prototype['@test _nameToClass does not error when not found'] = function () {
7278
- var _this8 = this;
7351
+ var _this9 = this;
7279
7352
 
7280
7353
  this.add('data-adapter:main', DataAdapter);
7281
7354
 
7282
7355
  return this.visit('/').then(function () {
7283
- adapter = _this8.applicationInstance.lookup('data-adapter:main');
7356
+ adapter = _this9.applicationInstance.lookup('data-adapter:main');
7284
7357
 
7285
7358
  var klass = adapter._nameToClass('foo');
7286
7359
 
@@ -21680,15 +21753,6 @@ enifed('ember-glimmer/tests/integration/event-dispatcher-test', ['ember-babel',
21680
21753
  this.render('{{x-foo}}');
21681
21754
  };
21682
21755
 
21683
- _class2.prototype['@test canDispatchToEventManager is deprecated in EventDispatcher'] = function () {
21684
- var MyDispatcher = _emberViews.EventDispatcher.extend({
21685
- canDispatchToEventManager: null
21686
- });
21687
-
21688
- expectDeprecation(/`canDispatchToEventManager` has been deprecated/);
21689
- MyDispatcher.create();
21690
- };
21691
-
21692
21756
  _class2.prototype['@test a rootElement can be specified'] = function (assert) {
21693
21757
  this.$().append('<div id="app"></div>');
21694
21758
  this.dispatcher.setup({ myevent: 'myEvent' }, '#app');
@@ -21733,15 +21797,42 @@ enifed('ember-glimmer/tests/integration/event-dispatcher-test', ['ember-babel',
21733
21797
  return _class2;
21734
21798
  }(_testCase.RenderingTest));
21735
21799
 
21800
+ (0, _testCase.moduleFor)('custom EventDispatcher subclass with #setup', function (_RenderingTest3) {
21801
+ (0, _emberBabel.inherits)(_class3, _RenderingTest3);
21802
+
21803
+ function _class3() {
21804
+
21805
+ var _this9 = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest3.call(this));
21806
+
21807
+ var dispatcher = _this9.owner.lookup('event_dispatcher:main');
21808
+ (0, _emberMetal.run)(dispatcher, 'destroy');
21809
+ _this9.owner.__container__.reset('event_dispatcher:main');
21810
+ _this9.owner.unregister('event_dispatcher:main');
21811
+ return _this9;
21812
+ }
21813
+
21814
+ _class3.prototype['@test canDispatchToEventManager is deprecated in EventDispatcher'] = function () {
21815
+ var MyDispatcher = _emberViews.EventDispatcher.extend({
21816
+ canDispatchToEventManager: null
21817
+ });
21818
+ this.owner.register('event_dispatcher:main', MyDispatcher);
21819
+
21820
+ expectDeprecation(/`canDispatchToEventManager` has been deprecated/);
21821
+ this.owner.lookup('event_dispatcher:main');
21822
+ };
21823
+
21824
+ return _class3;
21825
+ }(_testCase.RenderingTest));
21826
+
21736
21827
  if (canDataTransfer) {
21737
- (0, _testCase.moduleFor)('EventDispatcher - Event Properties', function (_RenderingTest4) {
21738
- (0, _emberBabel.inherits)(_class4, _RenderingTest4);
21828
+ (0, _testCase.moduleFor)('EventDispatcher - Event Properties', function (_RenderingTest5) {
21829
+ (0, _emberBabel.inherits)(_class5, _RenderingTest5);
21739
21830
 
21740
- function _class4() {
21741
- return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest4.apply(this, arguments));
21831
+ function _class5() {
21832
+ return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest5.apply(this, arguments));
21742
21833
  }
21743
21834
 
21744
- _class4.prototype['@test dataTransfer property is added to drop event'] = function (assert) {
21835
+ _class5.prototype['@test dataTransfer property is added to drop event'] = function (assert) {
21745
21836
  var receivedEvent = void 0;
21746
21837
  this.registerComponent('x-foo', {
21747
21838
  ComponentClass: _helpers.Component.extend({
@@ -21757,7 +21848,7 @@ enifed('ember-glimmer/tests/integration/event-dispatcher-test', ['ember-babel',
21757
21848
  assert.equal(receivedEvent.dataTransfer, 'success');
21758
21849
  };
21759
21850
 
21760
- return _class4;
21851
+ return _class5;
21761
21852
  }(_testCase.RenderingTest));
21762
21853
  }
21763
21854
  });
@@ -75637,10 +75728,12 @@ enifed('internal-test-helpers/test-cases/abstract-rendering', ['exports', 'ember
75637
75728
 
75638
75729
  var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AbstractTestCase.call(this));
75639
75730
 
75731
+ var bootOptions = _this.getBootOptions();
75732
+
75640
75733
  var owner = _this.owner = (0, _buildOwner.default)({
75641
75734
  ownerOptions: _this.getOwnerOptions(),
75642
- bootOptions: _this.getBootOptions(),
75643
- resolver: _this.getResolver()
75735
+ resolver: _this.getResolver(),
75736
+ bootOptions: bootOptions
75644
75737
  });
75645
75738
 
75646
75739
  _this.renderer = _this.owner.lookup('renderer:-dom');
@@ -75649,7 +75742,9 @@ enifed('internal-test-helpers/test-cases/abstract-rendering', ['exports', 'ember
75649
75742
 
75650
75743
  owner.register('event_dispatcher:main', _emberViews.EventDispatcher);
75651
75744
  owner.inject('event_dispatcher:main', '_viewRegistry', '-view-registry:main');
75652
- owner.lookup('event_dispatcher:main').setup(_this.getCustomDispatcherEvents(), _this.element);
75745
+ if (!bootOptions || bootOptions.isInteractive !== false) {
75746
+ owner.lookup('event_dispatcher:main').setup(_this.getCustomDispatcherEvents(), _this.element);
75747
+ }
75653
75748
  return _this;
75654
75749
  }
75655
75750
 
@@ -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.16.0-beta.2
9
+ * @version 2.16.0
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -9444,6 +9444,7 @@ enifed('backburner', ['exports', 'ember-babel'], function (exports, _emberBabel)
9444
9444
  };
9445
9445
 
9446
9446
  var noop = function () {};
9447
+ var SET_TIMEOUT = setTimeout;
9447
9448
 
9448
9449
  var Backburner = function () {
9449
9450
  function Backburner(queueNames) {
@@ -9480,7 +9481,7 @@ enifed('backburner', ['exports', 'ember-babel'], function (exports, _emberBabel)
9480
9481
  return clearTimeout(id);
9481
9482
  };
9482
9483
  platform.next = _platform.next || function (fn) {
9483
- return platform.setTimeout(fn, 0);
9484
+ return SET_TIMEOUT(fn, 0);
9484
9485
  };
9485
9486
  platform.clearNext = _platform.clearNext || platform.clearTimeout;
9486
9487
  platform.now = _platform.now || function () {
@@ -11139,7 +11140,6 @@ enifed("dag-map", ["exports"], function (exports) {
11139
11140
  };
11140
11141
  return IntStack;
11141
11142
  }();
11142
- //# sourceMappingURL=dag-map.js.map
11143
11143
  });
11144
11144
  enifed('ember-application/index', ['exports', 'ember-application/system/application', 'ember-application/system/application-instance', 'ember-application/system/resolver', 'ember-application/system/engine', 'ember-application/system/engine-instance', 'ember-application/system/engine-parent', 'ember-application/initializers/dom-templates'], function (exports, _application, _applicationInstance, _resolver, _engine, _engineInstance, _engineParent) {
11145
11145
  'use strict';
@@ -12306,7 +12306,11 @@ enifed('ember-application/system/engine-instance', ['exports', 'ember-babel', 'e
12306
12306
  var env = parent.lookup('-environment:main');
12307
12307
  this.register('-environment:main', env, { instantiate: false });
12308
12308
 
12309
- var singletons = ['router:main', (0, _container.privatize)(_templateObject), '-view-registry:main', 'renderer:-' + (env.isInteractive ? 'dom' : 'inert'), 'service:-document', 'event_dispatcher:main'];
12309
+ var singletons = ['router:main', (0, _container.privatize)(_templateObject), '-view-registry:main', 'renderer:-' + (env.isInteractive ? 'dom' : 'inert'), 'service:-document'];
12310
+
12311
+ if (env.isInteractive) {
12312
+ singletons.push('event_dispatcher:main');
12313
+ }
12310
12314
 
12311
12315
  singletons.forEach(function (key) {
12312
12316
  return _this2.register(key, parent.lookup(key), { instantiate: false });
@@ -14679,8 +14683,12 @@ enifed('ember-extension-support/data_adapter', ['exports', 'ember-utils', 'ember
14679
14683
  }
14680
14684
 
14681
14685
  var observer = {
14682
- didChange: function () {
14683
- _emberMetal.run.scheduleOnce('actions', this, onChange);
14686
+ didChange: function (array, idx, removedCount, addedCount) {
14687
+ // Only re-fetch records if the record count changed
14688
+ // (which is all we care about as far as model types are concerned).
14689
+ if (removedCount > 0 || addedCount > 0) {
14690
+ _emberMetal.run.scheduleOnce('actions', this, onChange);
14691
+ }
14684
14692
  },
14685
14693
  willChange: function () {
14686
14694
  return this;
@@ -40725,8 +40733,6 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40725
40733
 
40726
40734
  var _Mixin$create, _ClassMixinProps;
40727
40735
 
40728
- var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['.'], ['.']);
40729
-
40730
40736
  var schedule = _emberMetal.run.schedule;
40731
40737
  var applyMixin = _emberMetal.Mixin._apply;
40732
40738
  var finishPartial = _emberMetal.Mixin.finishPartial;
@@ -40911,7 +40917,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40911
40917
  return;
40912
40918
  }
40913
40919
 
40914
- (true && !(false) && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroyed` directly, please use ').destroy()(_templateObject), false));
40920
+ (true && !(false) && (0, _emberDebug.assert)('You cannot set `' + this + '.isDestroyed` directly, please use `.destroy()`.', false));
40915
40921
  }
40916
40922
  }), _Mixin$create.isDestroying = (0, _emberMetal.descriptor)({
40917
40923
  get: function () {
@@ -40923,7 +40929,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40923
40929
  return;
40924
40930
  }
40925
40931
 
40926
- (true && !(false) && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroying` directly, please use ').destroy()(_templateObject), false));
40932
+ (true && !(false) && (0, _emberDebug.assert)('You cannot set `' + this + '.isDestroying` directly, please use `.destroy()`.', false));
40927
40933
  }
40928
40934
  }), _Mixin$create.destroy = function () {
40929
40935
  var m = (0, _emberMetal.meta)(this);
@@ -44231,6 +44237,28 @@ enifed('ember-testing/helpers/pause_test', ['exports', 'ember-runtime', 'ember-c
44231
44237
  return pauseTest();
44232
44238
  click('.btn');
44233
44239
  ```
44240
+
44241
+ You may want to turn off the timeout before pausing.
44242
+
44243
+ qunit (as of 2.4.0):
44244
+
44245
+ ```
44246
+ visit('/');
44247
+ assert.timeout(0);
44248
+ return pauseTest();
44249
+ click('.btn');
44250
+ ```
44251
+
44252
+ mocha:
44253
+
44254
+ ```
44255
+ visit('/');
44256
+ this.timeout(0);
44257
+ return pauseTest();
44258
+ click('.btn');
44259
+ ```
44260
+
44261
+
44234
44262
  @since 1.9.0
44235
44263
  @method pauseTest
44236
44264
  @return {Object} A promise that will never resolve
@@ -46811,14 +46839,15 @@ enifed("ember-views/system/action_manager", ["exports"], function (exports) {
46811
46839
  */
46812
46840
  ActionManager.registeredActions = {};
46813
46841
  });
46814
- enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-views/system/jquery', 'ember-views/system/action_manager', 'ember-environment', 'ember-views/compat/fallback-view-registry'], function (exports, _emberUtils, _emberDebug, _emberMetal, _emberRuntime, _jquery, _action_manager, _emberEnvironment, _fallbackViewRegistry) {
46842
+ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-views/system/jquery', 'ember-views/system/action_manager', 'ember-views/compat/fallback-view-registry'], function (exports, _emberUtils, _emberDebug, _emberMetal, _emberRuntime, _jquery, _action_manager, _fallbackViewRegistry) {
46815
46843
  'use strict';
46816
46844
 
46817
- var ROOT_ELEMENT_CLASS = 'ember-application'; /**
46818
- @module ember
46819
- @submodule ember-views
46820
- */
46845
+ /**
46846
+ @module ember
46847
+ @submodule ember-views
46848
+ */
46821
46849
 
46850
+ var ROOT_ELEMENT_CLASS = 'ember-application';
46822
46851
  var ROOT_ELEMENT_SELECTOR = '.' + ROOT_ELEMENT_CLASS;
46823
46852
 
46824
46853
  /**
@@ -46930,8 +46959,18 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
46930
46959
  */
46931
46960
 
46932
46961
  init: function () {
46962
+ var _this = this;
46963
+
46933
46964
  this._super();
46934
- (true && !(_emberEnvironment.environment.hasDOM) && (0, _emberDebug.assert)('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', _emberEnvironment.environment.hasDOM));
46965
+
46966
+ (true && !(function () {
46967
+ var owner = (0, _emberUtils.getOwner)(_this);
46968
+ var environment = owner.lookup('-environment:main');
46969
+
46970
+ return environment.isInteractive;
46971
+ }()) && (0, _emberDebug.assert)('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', function () {
46972
+ var owner = (0, _emberUtils.getOwner)(_this);var environment = owner.lookup('-environment:main');return environment.isInteractive;
46973
+ }()));
46935
46974
  (true && !(!('canDispatchToEventManager' in this)) && (0, _emberDebug.deprecate)('`canDispatchToEventManager` has been deprecated in ' + this + '.', !('canDispatchToEventManager' in this), {
46936
46975
  id: 'ember-views.event-dispatcher.canDispatchToEventManager',
46937
46976
  until: '2.17.0'
@@ -48223,7 +48262,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
48223
48262
  enifed("ember/version", ["exports"], function (exports) {
48224
48263
  "use strict";
48225
48264
 
48226
- exports.default = "2.16.0-beta.2";
48265
+ exports.default = "2.16.0";
48227
48266
  });
48228
48267
  enifed("handlebars", ["exports"], function (exports) {
48229
48268
  "use strict";