dist/ember.js in ember-source-1.13.0 vs dist/ember.js in ember-source-1.13.1

- old
+ new

@@ -3,11 +3,11 @@ * @copyright Copyright 2011-2015 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 1.13.0 + * @version 1.13.1 */ (function() { var enifed, requireModule, eriuqer, requirejs, Ember; var mainContext = this; @@ -7854,11 +7854,11 @@ } return false; } }); -enifed("ember-htmlbars/hooks/invoke-helper", ["exports", "ember-metal/core", "ember-htmlbars/system/invoke-helper"], function (exports, _emberMetalCore, _emberHtmlbarsSystemInvokeHelper) { +enifed("ember-htmlbars/hooks/invoke-helper", ["exports", "ember-metal/core", "ember-htmlbars/system/invoke-helper", "ember-htmlbars/utils/subscribe"], function (exports, _emberMetalCore, _emberHtmlbarsSystemInvokeHelper, _emberHtmlbarsUtilsSubscribe) { exports.default = invokeHelper; function invokeHelper(morph, env, scope, visitor, params, hash, helper, templates, context) { if (helper.isLegacyViewHelper) { @@ -7871,10 +7871,30 @@ var helperStream = (0, _emberHtmlbarsSystemInvokeHelper.buildHelperStream)(helper, params, hash, templates, env, scope, context); // Ember.Helper helpers are pure values, thus linkable if (helperStream.linkable) { + + if (morph) { + // When processing an inline expression the params and hash have already + // been linked. Thus, HTMLBars will not link the returned helperStream. + // We subscribe the morph to the helperStream here, and also subscribe + // the helperStream to any params. + var addedDependency = false; + for (var i = 0, l = params.length; i < l; i++) { + addedDependency = true; + helperStream.addDependency(params[i]); + } + for (var key in hash) { + addedDependency = true; + helperStream.addDependency(hash[key]); + } + if (addedDependency) { + (0, _emberHtmlbarsUtilsSubscribe.default)(morph, env, scope, helperStream); + } + } + return { link: true, value: helperStream }; } // Legacy helpers are not linkable, they must run every rerender return { value: helperStream.value() }; @@ -8569,11 +8589,11 @@ return true; } }); enifed("ember-htmlbars/keywords/real_outlet", ["exports", "ember-metal/property_get", "ember-htmlbars/node-managers/view-node-manager", "ember-htmlbars/templates/top-level-view"], function (exports, _emberMetalProperty_get, _emberHtmlbarsNodeManagersViewNodeManager, _emberHtmlbarsTemplatesTopLevelView) { - _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = "Ember@1.13.0"; + _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = "Ember@1.13.1"; exports.default = { willRender: function (renderNode, env) { env.view.ownerView._outlets.push(renderNode); }, @@ -14344,11 +14364,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 1.13.0 + @version 1.13.1 @public */ if ('undefined' === typeof Ember) { // Create core object. Make it act like an instance of Ember.Namespace so that @@ -14376,15 +14396,15 @@ /** The semantic version. @property VERSION @type String - @default '1.13.0' + @default '1.13.1' @static @public */ - Ember.VERSION = '1.13.0'; + Ember.VERSION = '1.13.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 @@ -17789,13 +17809,10 @@ // Executes whenever the "value" property changes }) }); ``` - In the future this method may become asynchronous. If you want to ensure - synchronous behavior, use `immediateObserver`. - Also available as `Function.prototype.observes` if prototype extensions are enabled. @method observer @for Ember @@ -17858,15 +17875,18 @@ @method immediateObserver @for Ember @param {String} propertyNames* @param {Function} func + @deprecated Use `Ember.observer` instead. @return func @private */ function immediateObserver() { + _emberMetalCore.default.deprecate("Usage of `Ember.immediateObserver` is deprecated, use `Ember.observer` instead."); + for (var i = 0, l = arguments.length; i < l; i++) { var arg = arguments[i]; _emberMetalCore.default.assert("Immediate observers must observe internal properties only, not properties on other objects.", typeof arg !== "string" || arg.indexOf(".") === -1); } @@ -23230,11 +23250,11 @@ /** @module ember @submodule ember-routing-views */ enifed("ember-routing-views/views/link", ["exports", "ember-metal/core", "ember-metal/property_get", "ember-metal/property_set", "ember-metal/computed", "ember-views/system/utils", "ember-views/views/component", "ember-runtime/inject", "ember-runtime/mixins/controller", "ember-htmlbars/templates/link-to"], function (exports, _emberMetalCore, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalComputed, _emberViewsSystemUtils, _emberViewsViewsComponent, _emberRuntimeInject, _emberRuntimeMixinsController, _emberHtmlbarsTemplatesLinkTo) { - _emberHtmlbarsTemplatesLinkTo.default.meta.revision = "Ember@1.13.0"; + _emberHtmlbarsTemplatesLinkTo.default.meta.revision = "Ember@1.13.1"; var linkComponentClassNameBindings = ["active", "loading", "disabled"]; if (_emberMetalCore.default.FEATURES.isEnabled("ember-routing-transitioning-classes")) { linkComponentClassNameBindings = ["active", "loading", "disabled", "transitioningIn", "transitioningOut"]; } @@ -23740,11 +23760,11 @@ @submodule ember-routing-views */ // FEATURES, Logger, assert enifed("ember-routing-views/views/outlet", ["exports", "ember-views/views/view", "ember-htmlbars/templates/top-level-view"], function (exports, _emberViewsViewsView, _emberHtmlbarsTemplatesTopLevelView) { - _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = "Ember@1.13.0"; + _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = "Ember@1.13.1"; var CoreOutletView = _emberViewsViewsView.default.extend({ defaultTemplate: _emberHtmlbarsTemplatesTopLevelView.default, init: function () { @@ -30790,11 +30810,13 @@ @submodule ember-runtime */ // Ember.assert enifed('ember-runtime/controllers/array_controller', ['exports', 'ember-metal/core', 'ember-metal/property_get', 'ember-metal/enumerable_utils', 'ember-runtime/system/array_proxy', 'ember-runtime/mixins/sortable', 'ember-runtime/mixins/controller', 'ember-metal/computed', 'ember-metal/error', 'ember-runtime/mixins/array'], function (exports, _emberMetalCore, _emberMetalProperty_get, _emberMetalEnumerable_utils, _emberRuntimeSystemArray_proxy, _emberRuntimeMixinsSortable, _emberRuntimeMixinsController, _emberMetalComputed, _emberMetalError, _emberRuntimeMixinsArray) { + var arrayControllerDeprecation = '`Ember.ArrayController` is deprecated.'; + exports.arrayControllerDeprecation = arrayControllerDeprecation; /** `Ember.ArrayController` provides a way for you to publish a collection of objects so that you can easily bind to the collection from a Handlebars `#each` helper, an `Ember.CollectionView`, or other controllers. @@ -30875,10 +30897,11 @@ @class ArrayController @namespace Ember @extends Ember.ArrayProxy @uses Ember.SortableMixin @uses Ember.ControllerMixin + @deprecated @public */ exports.default = _emberRuntimeSystemArray_proxy.default.extend(_emberRuntimeMixinsController.default, _emberRuntimeMixinsSortable.default, { @@ -30971,10 +30994,11 @@ // calling `objectAt` this._super(idx, removedCnt, addedCnt); }, init: function () { + _emberMetalCore.default.deprecate(arrayControllerDeprecation); this._super.apply(this, arguments); this._subControllers = []; }, model: (0, _emberMetalComputed.computed)({ @@ -40420,11 +40444,11 @@ } options.plugins = plugins; options.buildMeta = function buildMeta(program) { return { - revision: "Ember@1.13.0", + revision: "Ember@1.13.1", loc: program.loc, moduleName: options.moduleName }; }; @@ -40659,20 +40683,26 @@ } } function visit(app, url) { var router = app.__container__.lookup("router:main"); + var shouldHandleURL = false; + app.boot().then(function () { router.location.setURL(url); + + if (shouldHandleURL) { + (0, _emberMetalRun_loop.default)(app.__deprecatedInstance__, "handleURL", url); + } }); if (app._readinessDeferrals > 0) { router["initialURL"] = url; (0, _emberMetalRun_loop.default)(app, "advanceReadiness"); delete router["initialURL"]; } else { - (0, _emberMetalRun_loop.default)(app.__deprecatedInstance__, "handleURL", url); + shouldHandleURL = true; } return app.testHelpers.wait(); } @@ -42083,14 +42113,16 @@ var buffer = new Ember.RenderBuffer('div', contextualElement); ``` @class RenderBuffer @namespace Ember + @deprecated @private */ var RenderBuffer = function (domHelper) { + _emberMetalCore.default.deprecate("`Ember.RenderBuffer` is deprecated."); this.buffer = null; this.childViews = []; this.attrNodes = []; _emberMetalCore.default.assert("RenderBuffer requires a DOM helper to be passed to its constructor.", !!domHelper); @@ -45580,10 +45612,10 @@ exports.default = Component; }); // Ember.assert, Ember.Handlebars enifed("ember-views/views/container_view", ["exports", "ember-metal/core", "ember-runtime/mixins/mutable_array", "ember-views/views/view", "ember-metal/property_get", "ember-metal/property_set", "ember-metal/enumerable_utils", "ember-metal/mixin", "ember-metal/events", "ember-htmlbars/templates/container-view"], function (exports, _emberMetalCore, _emberRuntimeMixinsMutable_array, _emberViewsViewsView, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalEnumerable_utils, _emberMetalMixin, _emberMetalEvents, _emberHtmlbarsTemplatesContainerView) { - _emberHtmlbarsTemplatesContainerView.default.meta.revision = "Ember@1.13.0"; + _emberHtmlbarsTemplatesContainerView.default.meta.revision = "Ember@1.13.1"; /** @module ember @submodule ember-views */ \ No newline at end of file