ember-source 2.12.1 → 2.12.2

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.12.1
9
+ * @version 2.12.2
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -1573,28 +1573,34 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1573
1573
  }
1574
1574
 
1575
1575
  function buildInjections() /* container, ...injections */{
1576
+ var _arguments = arguments;
1577
+
1576
1578
  var hash = {};
1577
1579
 
1578
1580
  if (arguments.length > 1) {
1579
- var container = arguments[0];
1580
- var injections = [];
1581
- var injection = undefined;
1581
+ (function () {
1582
+ var container = _arguments[0];
1583
+ var injections = [];
1584
+ var injection = undefined;
1582
1585
 
1583
- for (var i = 1; i < arguments.length; i++) {
1584
- if (arguments[i]) {
1585
- injections = injections.concat(arguments[i]);
1586
+ for (var i = 1; i < _arguments.length; i++) {
1587
+ if (_arguments[i]) {
1588
+ injections = injections.concat(_arguments[i]);
1589
+ }
1586
1590
  }
1587
- }
1588
1591
 
1589
- container.registry.validateInjections(injections);
1592
+ _emberMetal.runInDebug(function () {
1593
+ return container.registry.validateInjections(injections);
1594
+ });
1590
1595
 
1591
- for (var i = 0; i < injections.length; i++) {
1592
- injection = injections[i];
1593
- hash[injection.property] = lookup(container, injection.fullName);
1594
- if (!isSingleton(container, injection.fullName)) {
1595
- markInjectionsAsDynamic(hash);
1596
+ for (var i = 0; i < injections.length; i++) {
1597
+ injection = injections[i];
1598
+ hash[injection.property] = lookup(container, injection.fullName);
1599
+ if (!isSingleton(container, injection.fullName)) {
1600
+ markInjectionsAsDynamic(hash);
1601
+ }
1596
1602
  }
1597
- }
1603
+ })();
1598
1604
  }
1599
1605
 
1600
1606
  return hash;
@@ -1738,27 +1744,29 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1738
1744
  return factoryInjections;
1739
1745
  }
1740
1746
 
1747
+ var INJECTED_DEPRECATED_CONTAINER_DESC = {
1748
+ configurable: true,
1749
+ enumerable: false,
1750
+ get: function () {
1751
+ _emberMetal.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.', false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1752
+ return this[CONTAINER_OVERRIDE] || _emberUtils.getOwner(this).__container__;
1753
+ },
1754
+
1755
+ set: function (value) {
1756
+ _emberMetal.deprecate('Providing the `container` property to ' + this + ' is deprecated. Please use `Ember.setOwner` or `owner.ownerInjection()` instead to provide an owner to the instance being created.', false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1757
+
1758
+ this[CONTAINER_OVERRIDE] = value;
1759
+
1760
+ return value;
1761
+ }
1762
+ };
1763
+
1741
1764
  // TODO - remove when Ember reaches v3.0.0
1742
1765
  function injectDeprecatedContainer(object, container) {
1743
1766
  if ('container' in object) {
1744
1767
  return;
1745
1768
  }
1746
- Object.defineProperty(object, 'container', {
1747
- configurable: true,
1748
- enumerable: false,
1749
- get: function () {
1750
- _emberMetal.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.', false, { id: 'ember-application.injected-container', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1751
- return this[CONTAINER_OVERRIDE] || container;
1752
- },
1753
-
1754
- set: function (value) {
1755
- _emberMetal.deprecate('Providing the `container` property to ' + this + ' is deprecated. Please use `Ember.setOwner` or `owner.ownerInjection()` instead to provide an owner to the instance being created.', false, { id: 'ember-application.injected-container', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1756
-
1757
- this[CONTAINER_OVERRIDE] = value;
1758
-
1759
- return value;
1760
- }
1761
- });
1769
+ Object.defineProperty(object, 'container', INJECTED_DEPRECATED_CONTAINER_DESC);
1762
1770
  }
1763
1771
 
1764
1772
  function eachDestroyable(container, callback) {
@@ -1817,7 +1825,7 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1817
1825
  return function () {
1818
1826
  _emberMetal.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper to access the owner of this object and then call `' + ownerProperty + '` instead.', false, {
1819
1827
  id: 'ember-application.injected-container',
1820
- until: '3.0.0',
1828
+ until: '2.13.0',
1821
1829
  url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access'
1822
1830
  });
1823
1831
  return container[containerProperty].apply(container, arguments);
@@ -3485,7 +3493,7 @@ enifed('ember-application/system/application-instance', ['exports', 'ember-utils
3485
3493
  lookup: function () {
3486
3494
  _emberMetal.deprecate('Using `ApplicationInstance.container.lookup` is deprecated. Please use `ApplicationInstance.lookup` instead.', false, {
3487
3495
  id: 'ember-application.app-instance-container',
3488
- until: '3.0.0',
3496
+ until: '2.13.0',
3489
3497
  url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-applicationinstance-container'
3490
3498
  });
3491
3499
  return instance.lookup.apply(instance, arguments);
@@ -17964,7 +17972,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
17964
17972
  var stack = error.stack;
17965
17973
  var message = error.message;
17966
17974
 
17967
- if (stack && !stack.includes(message)) {
17975
+ if (stack && stack.indexOf(message) === -1) {
17968
17976
  stack = message + '\n' + stack;
17969
17977
  }
17970
17978
 
@@ -43572,7 +43580,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
43572
43580
  enifed("ember/version", ["exports"], function (exports) {
43573
43581
  "use strict";
43574
43582
 
43575
- exports.default = "2.12.1";
43583
+ exports.default = "2.12.2";
43576
43584
  });
43577
43585
  enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
43578
43586
  'use strict';
@@ -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.12.1
9
+ * @version 2.12.2
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -1573,28 +1573,34 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1573
1573
  }
1574
1574
 
1575
1575
  function buildInjections() /* container, ...injections */{
1576
+ var _arguments = arguments;
1577
+
1576
1578
  var hash = {};
1577
1579
 
1578
1580
  if (arguments.length > 1) {
1579
- var container = arguments[0];
1580
- var injections = [];
1581
- var injection = undefined;
1581
+ (function () {
1582
+ var container = _arguments[0];
1583
+ var injections = [];
1584
+ var injection = undefined;
1582
1585
 
1583
- for (var i = 1; i < arguments.length; i++) {
1584
- if (arguments[i]) {
1585
- injections = injections.concat(arguments[i]);
1586
+ for (var i = 1; i < _arguments.length; i++) {
1587
+ if (_arguments[i]) {
1588
+ injections = injections.concat(_arguments[i]);
1589
+ }
1586
1590
  }
1587
- }
1588
1591
 
1589
- container.registry.validateInjections(injections);
1592
+ _emberMetal.runInDebug(function () {
1593
+ return container.registry.validateInjections(injections);
1594
+ });
1590
1595
 
1591
- for (var i = 0; i < injections.length; i++) {
1592
- injection = injections[i];
1593
- hash[injection.property] = lookup(container, injection.fullName);
1594
- if (!isSingleton(container, injection.fullName)) {
1595
- markInjectionsAsDynamic(hash);
1596
+ for (var i = 0; i < injections.length; i++) {
1597
+ injection = injections[i];
1598
+ hash[injection.property] = lookup(container, injection.fullName);
1599
+ if (!isSingleton(container, injection.fullName)) {
1600
+ markInjectionsAsDynamic(hash);
1601
+ }
1596
1602
  }
1597
- }
1603
+ })();
1598
1604
  }
1599
1605
 
1600
1606
  return hash;
@@ -1738,27 +1744,29 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1738
1744
  return factoryInjections;
1739
1745
  }
1740
1746
 
1747
+ var INJECTED_DEPRECATED_CONTAINER_DESC = {
1748
+ configurable: true,
1749
+ enumerable: false,
1750
+ get: function () {
1751
+ _emberMetal.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.', false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1752
+ return this[CONTAINER_OVERRIDE] || _emberUtils.getOwner(this).__container__;
1753
+ },
1754
+
1755
+ set: function (value) {
1756
+ _emberMetal.deprecate('Providing the `container` property to ' + this + ' is deprecated. Please use `Ember.setOwner` or `owner.ownerInjection()` instead to provide an owner to the instance being created.', false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1757
+
1758
+ this[CONTAINER_OVERRIDE] = value;
1759
+
1760
+ return value;
1761
+ }
1762
+ };
1763
+
1741
1764
  // TODO - remove when Ember reaches v3.0.0
1742
1765
  function injectDeprecatedContainer(object, container) {
1743
1766
  if ('container' in object) {
1744
1767
  return;
1745
1768
  }
1746
- Object.defineProperty(object, 'container', {
1747
- configurable: true,
1748
- enumerable: false,
1749
- get: function () {
1750
- _emberMetal.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.', false, { id: 'ember-application.injected-container', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1751
- return this[CONTAINER_OVERRIDE] || container;
1752
- },
1753
-
1754
- set: function (value) {
1755
- _emberMetal.deprecate('Providing the `container` property to ' + this + ' is deprecated. Please use `Ember.setOwner` or `owner.ownerInjection()` instead to provide an owner to the instance being created.', false, { id: 'ember-application.injected-container', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' });
1756
-
1757
- this[CONTAINER_OVERRIDE] = value;
1758
-
1759
- return value;
1760
- }
1761
- });
1769
+ Object.defineProperty(object, 'container', INJECTED_DEPRECATED_CONTAINER_DESC);
1762
1770
  }
1763
1771
 
1764
1772
  function eachDestroyable(container, callback) {
@@ -1817,7 +1825,7 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1817
1825
  return function () {
1818
1826
  _emberMetal.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper to access the owner of this object and then call `' + ownerProperty + '` instead.', false, {
1819
1827
  id: 'ember-application.injected-container',
1820
- until: '3.0.0',
1828
+ until: '2.13.0',
1821
1829
  url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access'
1822
1830
  });
1823
1831
  return container[containerProperty].apply(container, arguments);
@@ -3485,7 +3493,7 @@ enifed('ember-application/system/application-instance', ['exports', 'ember-utils
3485
3493
  lookup: function () {
3486
3494
  _emberMetal.deprecate('Using `ApplicationInstance.container.lookup` is deprecated. Please use `ApplicationInstance.lookup` instead.', false, {
3487
3495
  id: 'ember-application.app-instance-container',
3488
- until: '3.0.0',
3496
+ until: '2.13.0',
3489
3497
  url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-applicationinstance-container'
3490
3498
  });
3491
3499
  return instance.lookup.apply(instance, arguments);
@@ -17964,7 +17972,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
17964
17972
  var stack = error.stack;
17965
17973
  var message = error.message;
17966
17974
 
17967
- if (stack && !stack.includes(message)) {
17975
+ if (stack && stack.indexOf(message) === -1) {
17968
17976
  stack = message + '\n' + stack;
17969
17977
  }
17970
17978
 
@@ -43572,7 +43580,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
43572
43580
  enifed("ember/version", ["exports"], function (exports) {
43573
43581
  "use strict";
43574
43582
 
43575
- exports.default = "2.12.1";
43583
+ exports.default = "2.12.2";
43576
43584
  });
43577
43585
  enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
43578
43586
  'use strict';
@@ -106,7 +106,6 @@ if(p(e,t,n))return r.create()
106
106
  if(u(e,t,n)||c(e,t,n))return r.class
107
107
  throw new Error("Could not create factory")}}function f(e){e._dynamic=!0}function m(e){return!!e._dynamic}function d(){var e={}
108
108
  if(arguments.length>1){for(var t=arguments[0],n=[],r=void 0,i=1;i<arguments.length;i++)arguments[i]&&(n=n.concat(arguments[i]))
109
- t.registry.validateInjections(n)
110
109
  for(var i=0;i<n.length;i++)r=n[i],e[r.property]=a(t,r.fullName),o(t,r.fullName)||f(e)}return e}function v(e,r){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=e.registry
111
110
  if(!i.source||(r=o.expandLocalLookup(r,i))){var s=e.factoryCache
112
111
  if(s[r])return s[r]
@@ -125,7 +124,7 @@ var s=void 0
125
124
  if("function"==typeof e.extend)s=e.create(n)
126
125
  else{var a=g(r,i)
127
126
  a.container=r._fakeContainerToInject,s=e.create(t.assign({},a,n)),Object.isFrozen(s)||_(s,r)}return s}}function b(e,t){var n=e.registry,r=t.split(":"),i=r[0],o=d(e,n.getFactoryTypeInjections(i),n.getFactoryInjections(t))
128
- return o._debugContainerKey=t,o}function _(e,t){"container"in e||Object.defineProperty(e,"container",{configurable:!0,enumerable:!1,get:function(){return this[A]||t},set:function(e){return this[A]=e,e}})}function w(e,t){for(var n=e.cache,r=Object.keys(n),i=0;i<r.length;i++){var o=r[i],s=n[o]
127
+ return o._debugContainerKey=t,o}function _(e,t){"container"in e||Object.defineProperty(e,"container",R)}function w(e,t){for(var n=e.cache,r=Object.keys(n),i=0;i<r.length;i++){var o=r[i],s=n[o]
129
128
  e.registry.getOption(o,"instantiate")!==!1&&t(s)}}function E(e){w(e,function(e){e.destroy&&e.destroy()}),e.cache.dict=t.dictionary(null)}function O(e,t){var n=e.cache[t]
130
129
  delete e.factoryCache[t],n&&(delete e.cache[t],n.destroy&&n.destroy())}function S(e){var t={},n={lookup:"lookup",lookupFactory:"_lookupFactory"}
131
130
  for(var r in n)t[r]=C(e,r,n[r])
@@ -135,16 +134,16 @@ var A=t.symbol("CONTAINER_OVERRIDE"),T=t.symbol("FACTORY_FOR")
135
134
  e.FACTORY_FOR=T
136
135
  var k=t.symbol("LOOKUP_FACTORY")
137
136
  e.LOOKUP_FACTORY=k,i.prototype=(x={owner:null,registry:null,cache:null,factoryCache:null,validationCache:null,lookup:function(e,t){return a(this,this.registry.normalize(e),t)},lookupFactory:function(e,t){return v(this,this.registry.normalize(e),t)}},x[k]=function(e,t){return v(this,this.registry.normalize(e),t)},x[T]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this[k](e,t)
138
- if(void 0!==n){var r=new R(this,n,e)
137
+ if(void 0!==n){var r=new N(this,n,e)
139
138
  return r}},x.destroy=function(){w(this,function(e){e.destroy&&e.destroy()}),this.isDestroyed=!0},x.reset=function(e){arguments.length>0?O(this,this.registry.normalize(e)):E(this)},x.ownerInjection=function(){var e
140
139
  return e={},e[t.OWNER]=this.owner,e},x),i.prototype.factoryFor=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.registry.normalize(e)
141
140
  if(!t.source||(n=this.registry.expandLocalLookup(e,t))){var r=this.factoryManagerCache[n]
142
141
  if(r)return r
143
142
  var i=this.registry.resolve(n)
144
- if(void 0!==i){var o=new N(this,i,e,n)
143
+ if(void 0!==i){var o=new P(this,i,e,n)
145
144
  return this.factoryManagerCache[n]=o,o}}}
146
- var R=function(){function e(e,t,n){this.container=e,this.class=t,this.fullName=n}return e.prototype.create=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]
147
- return y(this.class,e,this.container,this.fullName)},e}(),N=function(){function e(e,t,n,r){this.container=e,this.class=t,this.fullName=n,this.normalizedName=r,this.madeToString=void 0,this.injections=void 0}return e.prototype.create=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=this.injections
145
+ var R={configurable:!0,enumerable:!1,get:function(){return this[A]||t.getOwner(this).__container__},set:function(e){return this[A]=e,e}},N=function(){function e(e,t,n){this.container=e,this.class=t,this.fullName=n}return e.prototype.create=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]
146
+ return y(this.class,e,this.container,this.fullName)},e}(),P=function(){function e(e,t,n,r){this.container=e,this.class=t,this.fullName=n,this.normalizedName=r,this.madeToString=void 0,this.injections=void 0}return e.prototype.create=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=this.injections
148
147
  void 0===n&&(n=g(this.container,this.normalizedName),m(n)===!1&&(this.injections=n))
149
148
  var r=t.assign({},n,e)
150
149
  if(r[t.NAME_KEY]=this.madeToString||(this.madeToString=this.container.registry.makeToString(this.class,this.fullName)),!this.class.create)throw new Error("Failed to create an instance of '"+this.normalizedName+"'. Most likely an improperly defined class or an invalid module export.")
@@ -965,7 +964,7 @@ e.default=t}),s("ember-metal/error_handler",["exports","ember-console","ember-me
965
964
  function r(){return c}function i(e){c=e}function o(e){p?p(e):u(e)}function s(){return p}function a(e){p=e}function u(e){if(n.isTesting())throw e
966
965
  c?c(e):t.default.error(l(e))}e.getOnerror=r,e.setOnerror=i,e.dispatchError=o,e.getDispatchOverride=s,e.setDispatchOverride=a
967
966
  var l=function(e){var t=e.stack,n=e.message
968
- return t&&!t.includes(n)&&(t=n+"\n"+t),t},c=void 0,p=void 0}),s("ember-metal/events",["exports","ember-utils","ember-metal/debug","ember-metal/meta","ember-metal/meta_listeners"],function(e,t,n,r,i){"no use strict"
967
+ return t&&t.indexOf(n)===-1&&(t=n+"\n"+t),t},c=void 0,p=void 0}),s("ember-metal/events",["exports","ember-utils","ember-metal/debug","ember-metal/meta","ember-metal/meta_listeners"],function(e,t,n,r,i){"no use strict"
969
968
  function o(e,t,n){for(var r=-1,i=e.length-3;i>=0;i-=3)if(t===e[i]&&n===e[i+1]){r=i
970
969
  break}return r}function s(e,t,n){var i=r.peekMeta(e)
971
970
  if(i){for(var s=i.matchingListeners(t),a=[],u=s.length-3;u>=0;u-=3){var l=s[u],c=s[u+1],p=s[u+2],h=o(n,l,c)
@@ -2203,7 +2202,7 @@ v.setDiff=u.setDiff,v.mapBy=u.mapBy,v.filter=u.filter,v.filterBy=u.filterBy,v.un
2203
2202
  var g=o.default.Handlebars=o.default.Handlebars||{},y=o.default.HTMLBars=o.default.HTMLBars||{},b=g.Utils=g.Utils||{}
2204
2203
  if(Object.defineProperty(g,"SafeString",{get:l._getSafeString}),y.template=g.template=l.template,b.escapeExpression=l.escapeExpression,u.String.htmlSafe=l.htmlSafe,u.String.isHTMLSafe=l.isHTMLSafe,y.makeBoundHelper=l.makeBoundHelper,Object.defineProperty(o.default,"TEMPLATES",{get:l.getTemplates,set:l.setTemplates,configurable:!1,enumerable:!1}),e.VERSION=c.default,o.default.VERSION=c.default,o.libraries.registerCoreLibrary("Ember",c.default),o.default.create=o.deprecateFunc("Ember.create is deprecated in favor of Object.create",{id:"ember-metal.ember-create",until:"3.0.0"},Object.create),o.default.keys=o.deprecateFunc("Ember.keys is deprecated in favor of Object.keys",{id:"ember-metal.ember.keys",until:"3.0.0"},Object.keys),o.default.$=p.jQuery,o.default.ViewTargetActionSupport=p.ViewTargetActionSupport,o.default.ViewUtils={isSimpleClick:p.isSimpleClick,getViewElement:p.getViewElement,getViewBounds:p.getViewBounds,getViewClientRects:p.getViewClientRects,getViewBoundingClientRect:p.getViewBoundingClientRect,getRootViews:p.getRootViews,getChildViews:p.getChildViews},o.default.TextSupport=p.TextSupport,o.default.ComponentLookup=p.ComponentLookup,o.default.EventDispatcher=p.EventDispatcher,o.default.Location=h.Location,o.default.AutoLocation=h.AutoLocation,o.default.HashLocation=h.HashLocation,o.default.HistoryLocation=h.HistoryLocation,o.default.NoneLocation=h.NoneLocation,o.default.controllerFor=h.controllerFor,o.default.generateControllerFactory=h.generateControllerFactory,o.default.generateController=h.generateController,o.default.RouterDSL=h.RouterDSL,o.default.Router=h.Router,o.default.Route=h.Route,o.default.Application=f.Application,o.default.ApplicationInstance=f.ApplicationInstance,o.default.Engine=f.Engine,o.default.EngineInstance=f.EngineInstance,o.default.DefaultResolver=o.default.Resolver=f.Resolver,u.runLoadHooks("Ember.Application",f.Application),o.default.DataAdapter=m.DataAdapter,o.default.ContainerDebugAdapter=m.ContainerDebugAdapter,t.has("ember-template-compiler")&&t.default("ember-template-compiler"),t.has("ember-testing")){var _=t.default("ember-testing")
2205
2204
  o.default.Test=_.Test,o.default.Test.Adapter=_.Adapter,o.default.Test.QUnitAdapter=_.QUnitAdapter,o.default.setupForTesting=_.setupForTesting}u.runLoadHooks("Ember"),e.default=o.default,"object"==typeof module&&module.exports?module.exports=o.default:n.context.exports.Ember=n.context.exports.Em=o.default}),s("ember/version",["exports"],function(e){"use strict"
2206
- e.default="2.12.1"}),s("internal-test-helpers/apply-mixins",["exports","ember-utils"],function(e,t){"use strict"
2205
+ e.default="2.12.2"}),s("internal-test-helpers/apply-mixins",["exports","ember-utils"],function(e,t){"use strict"
2207
2206
  function n(e){return Array.isArray(e.cases)&&"function"==typeof e.generate}function r(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o]
2208
2207
  return i.forEach(function(r){var i=void 0
2209
2208
  n(r)?function(){var e=r
@@ -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.12.1
9
+ * @version 2.12.2
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -1560,8 +1560,6 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1560
1560
  }
1561
1561
  }
1562
1562
 
1563
- container.registry.validateInjections(injections);
1564
-
1565
1563
  for (var i = 0; i < injections.length; i++) {
1566
1564
  injection = injections[i];
1567
1565
  hash[injection.property] = lookup(container, injection.fullName);
@@ -1702,25 +1700,27 @@ enifed('container/container', ['exports', 'ember-utils', 'ember-environment', 'e
1702
1700
  return factoryInjections;
1703
1701
  }
1704
1702
 
1703
+ var INJECTED_DEPRECATED_CONTAINER_DESC = {
1704
+ configurable: true,
1705
+ enumerable: false,
1706
+ get: function () {
1707
+ return this[CONTAINER_OVERRIDE] || _emberUtils.getOwner(this).__container__;
1708
+ },
1709
+
1710
+ set: function (value) {
1711
+
1712
+ this[CONTAINER_OVERRIDE] = value;
1713
+
1714
+ return value;
1715
+ }
1716
+ };
1717
+
1705
1718
  // TODO - remove when Ember reaches v3.0.0
1706
1719
  function injectDeprecatedContainer(object, container) {
1707
1720
  if ('container' in object) {
1708
1721
  return;
1709
1722
  }
1710
- Object.defineProperty(object, 'container', {
1711
- configurable: true,
1712
- enumerable: false,
1713
- get: function () {
1714
- return this[CONTAINER_OVERRIDE] || container;
1715
- },
1716
-
1717
- set: function (value) {
1718
-
1719
- this[CONTAINER_OVERRIDE] = value;
1720
-
1721
- return value;
1722
- }
1723
- });
1723
+ Object.defineProperty(object, 'container', INJECTED_DEPRECATED_CONTAINER_DESC);
1724
1724
  }
1725
1725
 
1726
1726
  function eachDestroyable(container, callback) {
@@ -16648,7 +16648,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
16648
16648
  var stack = error.stack;
16649
16649
  var message = error.message;
16650
16650
 
16651
- if (stack && !stack.includes(message)) {
16651
+ if (stack && stack.indexOf(message) === -1) {
16652
16652
  stack = message + '\n' + stack;
16653
16653
  }
16654
16654
 
@@ -40203,7 +40203,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
40203
40203
  enifed("ember/version", ["exports"], function (exports) {
40204
40204
  "use strict";
40205
40205
 
40206
- exports.default = "2.12.1";
40206
+ exports.default = "2.12.2";
40207
40207
  });
40208
40208
  enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
40209
40209
  'use strict';
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.12.1
4
+ version: 2.12.2
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-04-07 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ember.js source code wrapper for use with Ruby libs.
14
14
  email: