dist/ember-runtime.js in ember-source-2.5.0 vs dist/ember-runtime.js in ember-source-2.5.1

- old
+ new

@@ -4,11 +4,11 @@ * @copyright Copyright 2011-2016 Tilde Inc. and contributors * Portions Copyright 2006-2011 Strobe Inc. * Portions Copyright 2008-2011 Apple Inc. All rights reserved. * @license Licensed under MIT license * See https://raw.github.com/emberjs/ember.js/master/LICENSE - * @version 2.5.0 + * @version 2.5.1 */ var enifed, requireModule, require, requirejs, Ember; var mainContext = this; @@ -4741,11 +4741,11 @@ cross-platform libraries such as jQuery. For more details, see [Ember-Runtime](http://emberjs.com/api/modules/ember-runtime.html). @class Ember @static - @version 2.5.0 + @version 2.5.1 @public */ if ('undefined' === typeof Ember) { // Create core object. Make it act like an instance of Ember.Namespace so that @@ -4783,15 +4783,15 @@ /** The semantic version. @property VERSION @type String - @default '2.5.0' + @default '2.5.1' @static @public */ - Ember.VERSION = '2.5.0'; + Ember.VERSION = '2.5.1'; /** The hash of environment variables used to control various configuration settings. To specify your own or override default settings, add the desired properties to a global hash named `EmberENV` (or `ENV` for @@ -5929,11 +5929,11 @@ AliasedPropertyPrototype.oneWay.call(this); } function injectedPropertyGet(keyName) { var desc = this[keyName]; - var owner = _containerOwner.getOwner(this); + var owner = _containerOwner.getOwner(this) || this.container; // fallback to `container` for backwards compat _emberMetalDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type); _emberMetalDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner); return owner.lookup(desc.type + ':' + (desc.name || keyName)); @@ -7083,15 +7083,11 @@ exports.default = Map; exports.OrderedSet = OrderedSet; exports.Map = Map; exports.MapWithDefault = MapWithDefault; }); -enifed('ember-metal/merge', ['exports', 'ember-metal/debug', 'ember-metal/features'], function (exports, _emberMetalDebug, _emberMetalFeatures) { - 'use strict'; - - exports.default = merge; - +enifed('ember-metal/merge', ['exports'], function (exports) { /** Merge the contents of two objects together into the first object. ```javascript Ember.merge({first: 'Tom'}, {last: 'Dale'}); // {first: 'Tom', last: 'Dale'} @@ -7105,18 +7101,15 @@ @param {Object} original The object to merge into @param {Object} updates The object to copy properties from @return {Object} @public */ + 'use strict'; - function merge(original, updates) { - if (_emberMetalFeatures.default('ember-metal-ember-assign')) { - _emberMetalDebug.deprecate('Usage of `Ember.merge` is deprecated, use `Ember.assign` instead.', false, { - id: 'ember-metal.merge', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-merge' - }); - } + exports.default = merge; + function merge(original, updates) { if (!updates || typeof updates !== 'object') { return original; } var props = Object.keys(updates); @@ -18513,20 +18506,13 @@ }, _Mixin$create.toString = function () { var hasToStringExtension = typeof this.toStringExtension === 'function'; var extension = hasToStringExtension ? ':' + this.toStringExtension() : ''; var ret = '<' + this.constructor.toString() + ':' + _emberMetalUtils.guidFor(this) + extension + '>'; - this.toString = makeToString(ret); return ret; }, _Mixin$create)); CoreObject.PrototypeMixin.ownerConstructor = CoreObject; - - function makeToString(ret) { - return function () { - return ret; - }; - } CoreObject.__super__ = null; var ClassMixinProps = {