dist/ember.prod.js in ember-source-2.4.0 vs dist/ember.prod.js in ember-source-2.4.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.4.0-beta.3 + * @version 2.4.1 */ var enifed, requireModule, require, requirejs, Ember; var mainContext = this; @@ -4183,12 +4183,24 @@ @module ember @submodule ember-application */ 'use strict'; + exports._resetLegacyAddonWarnings = _resetLegacyAddonWarnings; + var librariesRegistered = false; + var warnedAboutLegacyViewAddon = false; + var warnedAboutLegacyControllerAddon = false; + + // For testing + + function _resetLegacyAddonWarnings() { + warnedAboutLegacyViewAddon = false; + warnedAboutLegacyControllerAddon = false; + } + /** An instance of `Ember.Application` is the starting point for every Ember application. It helps to instantiate, initialize and coordinate the many objects that make up your app. @@ -4686,10 +4698,20 @@ _bootSync: function () { if (this._booted) { return; } + if (_emberMetal.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT && !warnedAboutLegacyViewAddon) { + + warnedAboutLegacyViewAddon = true; + } + + if (_emberMetal.default.ENV._ENABLE_LEGACY_CONTROLLER_SUPPORT && !warnedAboutLegacyControllerAddon) { + + warnedAboutLegacyControllerAddon = true; + } + // Even though this returns synchronously, we still need to make sure the // boot promise exists for book-keeping purposes: if anything went wrong in // the boot process, we need to store the error as a rejection on the boot // promise so that a future caller of `boot()` can tell what failed. var defer = this._bootResolver = new _emberRuntimeExtRsvp.default.defer(); @@ -5016,11 +5038,10 @@ ``` @method visit @param url {String} The initial URL to navigate to @param options {Ember.ApplicationInstance.BootOptions} @return {Promise<Ember.ApplicationInstance, Error>} - @private */ visit: function (url, options) { var _this = this; return this.boot().then(function () { @@ -8460,11 +8481,11 @@ var predicateVal = _emberMetalStreamsUtils.read(predicate); var lengthVal = _emberMetalStreamsUtils.read(length); var isTruthyVal = _emberMetalStreamsUtils.read(isTruthy); if (_emberRuntimeUtils.isArray(predicateVal)) { - return lengthVal > 0; + return lengthVal > 0 ? predicateVal : false; } if (typeof isTruthyVal === 'boolean') { return isTruthyVal; } @@ -9165,11 +9186,11 @@ For example, given a `person-form` component with the following template: ```handlebars {{yield (hash - nameInput=(component "input" value=model.name placeholder="First Name"))}} + nameInput=(component "my-input-component" value=model.name placeholder="First Name"))}} ``` The following snippet: ``` @@ -9879,11 +9900,11 @@ @submodule ember-templates */ 'use strict'; - _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.4.0-beta.3'; + _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.4.1'; /** The `{{outlet}}` helper lets you specify where a child routes will render in your template. An important use of the `{{outlet}}` helper is in your application's `application.hbs` file: @@ -15456,11 +15477,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.4.0-beta.3 + @version 2.4.1 @public */ if ('undefined' === typeof Ember) { // Create core object. Make it act like an instance of Ember.Namespace so that @@ -15498,15 +15519,15 @@ /** The semantic version. @property VERSION @type String - @default '2.4.0-beta.3' + @default '2.4.1' @static @public */ - Ember.VERSION = '2.4.0-beta.3'; + Ember.VERSION = '2.4.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 @@ -29002,12 +29023,14 @@ nodeManager.render(env, hash, visitor); }, rerender: function (node, env, scope, params, hash, template, inverse, visitor) { - var model = _emberMetalStreamsUtils.read(params[1]); - node.getState().controller.set('model', model); + if (params.length > 1) { + var model = _emberMetalStreamsUtils.read(params[1]); + node.getState().controller.set('model', model); + } } }; function childOutletState(name, env) { var topLevel = env.view.ownerView; @@ -29386,11 +29409,11 @@ @submodule ember-routing-views */ 'use strict'; - _emberHtmlbarsTemplatesLinkTo.default.meta.revision = 'Ember@2.4.0-beta.3'; + _emberHtmlbarsTemplatesLinkTo.default.meta.revision = 'Ember@2.4.1'; /** `Ember.LinkComponent` renders an element whose `click` event triggers a transition of the application's instance of `Ember.Router` to a supplied route by name. @@ -29886,11 +29909,11 @@ @submodule ember-routing-views */ 'use strict'; - _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.4.0-beta.3'; + _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.4.1'; var CoreOutletView = _emberViewsViewsView.default.extend({ defaultTemplate: _emberHtmlbarsTemplatesTopLevelView.default, init: function () { @@ -38812,11 +38835,11 @@ options.plugins = plugins; options.buildMeta = function buildMeta(program) { return { fragmentReason: fragmentReason(program), - revision: 'Ember@2.4.0-beta.3', + revision: 'Ember@2.4.1', loc: program.loc, moduleName: options.moduleName }; }; @@ -42878,10 +42901,10 @@ exports.DeprecatedCollectionView = DeprecatedCollectionView; }); enifed('ember-views/views/container_view', ['exports', 'ember-metal/core', 'ember-metal/debug', 'ember-runtime/mixins/mutable_array', 'ember-runtime/system/native_array', 'ember-views/views/view', 'ember-metal/property_get', 'ember-metal/property_set', 'ember-metal/mixin', 'ember-metal/events', 'ember-htmlbars/templates/container-view'], function (exports, _emberMetalCore, _emberMetalDebug, _emberRuntimeMixinsMutable_array, _emberRuntimeSystemNative_array, _emberViewsViewsView, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalMixin, _emberMetalEvents, _emberHtmlbarsTemplatesContainerView) { 'use strict'; - _emberHtmlbarsTemplatesContainerView.default.meta.revision = 'Ember@2.4.0-beta.3'; + _emberHtmlbarsTemplatesContainerView.default.meta.revision = 'Ember@2.4.1'; /** @module ember @submodule ember-views */