ember-source 2.11.2 → 2.11.3

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.11.2
9
+ * @version 2.11.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -164,7 +164,7 @@ function defaults(obj, defaults) {
164
164
  return obj;
165
165
  }
166
166
 
167
- babelHelpers = {
167
+ var babelHelpers = {
168
168
  inherits: inherits,
169
169
  taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
170
170
  slice: Array.prototype.slice,
@@ -8242,7 +8242,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
8242
8242
  this.isInteractive = owner.lookup('-environment:main').isInteractive;
8243
8243
 
8244
8244
  // can be removed once https://github.com/tildeio/glimmer/pull/305 lands
8245
- this.destroyedComponents = undefined;
8245
+ this.destroyedComponents = [];
8246
8246
 
8247
8247
  _emberGlimmerProtocolForUrl.default(this);
8248
8248
 
@@ -8563,16 +8563,16 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
8563
8563
  this.inTransaction = true;
8564
8564
 
8565
8565
  _GlimmerEnvironment.prototype.begin.call(this);
8566
-
8567
- this.destroyedComponents = [];
8568
8566
  };
8569
8567
 
8570
8568
  Environment.prototype.commit = function commit() {
8569
+ var destroyedComponents = this.destroyedComponents;
8570
+ this.destroyedComponents = [];
8571
8571
  // components queued for destruction must be destroyed before firing
8572
8572
  // `didCreate` to prevent errors when removing and adding a component
8573
8573
  // with the same name (would throw an error when added to view registry)
8574
- for (var i = 0; i < this.destroyedComponents.length; i++) {
8575
- this.destroyedComponents[i].destroy();
8574
+ for (var i = 0; i < destroyedComponents.length; i++) {
8575
+ destroyedComponents[i].destroy();
8576
8576
  }
8577
8577
 
8578
8578
  _GlimmerEnvironment.prototype.commit.call(this);
@@ -9278,7 +9278,7 @@ enifed('ember-glimmer/helpers/component', ['exports', 'ember-utils', 'ember-glim
9278
9278
  )}}
9279
9279
  ```
9280
9280
 
9281
- When yielding the component via the `hash` helper, the component is invocked directly.
9281
+ When yielding the component via the `hash` helper, the component is invoked directly.
9282
9282
  See the following snippet:
9283
9283
 
9284
9284
  ```
@@ -16334,6 +16334,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
16334
16334
  exports.getOnerror = getOnerror;
16335
16335
  exports.setOnerror = setOnerror;
16336
16336
  exports.dispatchError = dispatchError;
16337
+ exports.getDispatchOverride = getDispatchOverride;
16337
16338
  exports.setDispatchOverride = setDispatchOverride;
16338
16339
 
16339
16340
  // To maintain stacktrace consistency across browsers
@@ -16374,6 +16375,10 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
16374
16375
 
16375
16376
  // allows testing adapter to override dispatch
16376
16377
 
16378
+ function getDispatchOverride() {
16379
+ return dispatchOverride;
16380
+ }
16381
+
16377
16382
  function setDispatchOverride(handler) {
16378
16383
  dispatchOverride = handler;
16379
16384
  }
@@ -20848,7 +20853,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-utils', 'ember-metal/debug', '
20848
20853
 
20849
20854
  var onErrorTarget = {
20850
20855
  get onerror() {
20851
- return _emberMetalError_handler.getOnerror();
20856
+ return _emberMetalError_handler.dispatchError;
20852
20857
  },
20853
20858
  set onerror(handler) {
20854
20859
  return _emberMetalError_handler.setOnerror(handler);
@@ -33411,9 +33416,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
33411
33416
  only a sender and key value as parameters or, if you aren't interested in
33412
33417
  any of these values, to write an observer that has no parameters at all.
33413
33418
  @method addObserver
33414
- @param {String} key The key to observer
33419
+ @param {String} key The key to observe
33415
33420
  @param {Object} target The target object to invoke
33416
- @param {String|Function} method The method to invoke.
33421
+ @param {String|Function} method The method to invoke
33417
33422
  @public
33418
33423
  */
33419
33424
  addObserver: function (key, target, method) {
@@ -33425,9 +33430,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
33425
33430
  the same key, target, and method you passed to `addObserver()` and your
33426
33431
  target will no longer receive notifications.
33427
33432
  @method removeObserver
33428
- @param {String} key The key to observer
33433
+ @param {String} key The key to observe
33429
33434
  @param {Object} target The target object to invoke
33430
- @param {String|Function} method The method to invoke.
33435
+ @param {String|Function} method The method to invoke
33431
33436
  @public
33432
33437
  */
33433
33438
  removeObserver: function (key, target, method) {
@@ -37156,8 +37161,7 @@ enifed('ember-utils/owner', ['exports', 'ember-utils/symbol'], function (exports
37156
37161
  For example, this component dynamically looks up a service based on the
37157
37162
  `audioType` passed as an attribute:
37158
37163
 
37159
- ```
37160
- // app/components/play-audio.js
37164
+ ```app/components/play-audio.js
37161
37165
  import Ember from 'ember';
37162
37166
 
37163
37167
  // Usage:
@@ -37374,7 +37378,7 @@ enifed('ember-views/index', ['exports', 'ember-views/system/ext', 'ember-views/s
37374
37378
  exports.getViewId = _emberViewsSystemUtils.getViewId;
37375
37379
  exports.getViewElement = _emberViewsSystemUtils.getViewElement;
37376
37380
  exports.setViewElement = _emberViewsSystemUtils.setViewElement;
37377
- exports.STYLE_WARNING = _emberViewsSystemUtils.STYLE_WARNING;
37381
+ exports.constructStyleDeprecationMessage = _emberViewsSystemUtils.constructStyleDeprecationMessage;
37378
37382
  exports.EventDispatcher = _emberViewsSystemEvent_dispatcher.default;
37379
37383
  exports.ComponentLookup = _emberViewsComponent_lookup.default;
37380
37384
  exports.TextSupport = _emberViewsMixinsText_support.default;
@@ -38741,6 +38745,7 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
38741
38745
  'use strict';
38742
38746
 
38743
38747
  exports.isSimpleClick = isSimpleClick;
38748
+ exports.constructStyleDeprecationMessage = constructStyleDeprecationMessage;
38744
38749
  exports.getRootViews = getRootViews;
38745
38750
  exports.getViewId = getViewId;
38746
38751
  exports.getViewElement = getViewElement;
@@ -38768,9 +38773,10 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
38768
38773
  return !modifier && !secondaryClick;
38769
38774
  }
38770
38775
 
38771
- var STYLE_WARNING = '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes.';
38776
+ function constructStyleDeprecationMessage(affectedStyle) {
38777
+ return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. ' + 'Style affected: "' + affectedStyle + '"';
38778
+ }
38772
38779
 
38773
- exports.STYLE_WARNING = STYLE_WARNING;
38774
38780
  /**
38775
38781
  @private
38776
38782
  @method getRootViews
@@ -39774,7 +39780,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
39774
39780
  enifed("ember/version", ["exports"], function (exports) {
39775
39781
  "use strict";
39776
39782
 
39777
- exports.default = "2.11.2";
39783
+ exports.default = "2.11.3";
39778
39784
  });
39779
39785
  enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
39780
39786
  'use strict';
@@ -55182,6 +55188,7 @@ enifed('rsvp', ['exports'], function (exports) {
55182
55188
  } else {
55183
55189
  if (then$$ === GET_THEN_ERROR) {
55184
55190
  reject(promise, GET_THEN_ERROR.error);
55191
+ GET_THEN_ERROR.error = null;
55185
55192
  } else if (then$$ === undefined) {
55186
55193
  fulfill(promise, maybeThenable);
55187
55194
  } else if (isFunction(then$$)) {
@@ -55309,10 +55316,10 @@ enifed('rsvp', ['exports'], function (exports) {
55309
55316
  if (value === TRY_CATCH_ERROR) {
55310
55317
  failed = true;
55311
55318
  error = value.error;
55312
- value = null;
55319
+ value.error = null; // release
55313
55320
  } else {
55314
- succeeded = true;
55315
- }
55321
+ succeeded = true;
55322
+ }
55316
55323
 
55317
55324
  if (promise === value) {
55318
55325
  reject(promise, withOwnPromise());
@@ -56096,7 +56103,7 @@ enifed('rsvp', ['exports'], function (exports) {
56096
56103
  try {
56097
56104
  return findAuthor(); // succeed or fail
56098
56105
  } catch(error) {
56099
- return findOtherAuther();
56106
+ return findOtherAuthor();
56100
56107
  } finally {
56101
56108
  // always runs
56102
56109
  // doesn't affect the return value
@@ -56107,7 +56114,7 @@ enifed('rsvp', ['exports'], function (exports) {
56107
56114
 
56108
56115
  ```js
56109
56116
  findAuthor().catch(function(reason){
56110
- return findOtherAuther();
56117
+ return findOtherAuthor();
56111
56118
  }).finally(function(){
56112
56119
  // author was either found, or not
56113
56120
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.2
4
+ version: 2.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-19 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ember.js source code wrapper for use with Ruby libs.
14
14
  email: