dist/ember.js in ember-source-2.6.0.beta.1 vs dist/ember.js in ember-source-2.6.0.beta.2

- 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.6.0-beta.1 + * @version 2.6.0-beta.2 */ var enifed, requireModule, require, Ember; var mainContext = this; @@ -1680,11 +1680,11 @@ enifed('container/registry', ['exports', 'ember-metal/features', 'ember-metal/debug', 'ember-metal/dictionary', 'ember-metal/empty_object', 'ember-metal/assign', 'container/container', 'ember-metal/utils'], function (exports, _emberMetalFeatures, _emberMetalDebug, _emberMetalDictionary, _emberMetalEmpty_object, _emberMetalAssign, _containerContainer, _emberMetalUtils) { 'use strict'; exports.privatize = privatize; - var VALID_FULL_NAME_REGEXP = /^[^:]+.+:[^:]+$/; + var VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/; /** A registry used to store factory and option information keyed by type. @@ -1990,11 +1990,13 @@ @param {Object} [options] @param {String} [options.source] the fullname of the request source (used for local lookups) @return {Boolean} */ has: function (fullName, options) { - _emberMetalDebug.assert('fullName must be a proper full name', this.validateFullName(fullName)); + if (!this.isValidFullName(fullName)) { + return false; + } var source = undefined; source = options && options.source && this.normalize(options.source); @@ -2283,16 +2285,21 @@ return _emberMetalAssign.default({}, fallbackKnown, localKnown, resolverKnown); }, validateFullName: function (fullName) { - if (!VALID_FULL_NAME_REGEXP.test(fullName)) { + if (!this.isValidFullName(fullName)) { throw new TypeError('Invalid Fullname, expected: `type:name` got: ' + fullName); } + return true; }, + isValidFullName: function (fullName) { + return !!VALID_FULL_NAME_REGEXP.test(fullName); + }, + validateInjections: function (injections) { if (!injections) { return; } @@ -6422,44 +6429,29 @@ } _emberDebugHandlers.invoke.apply(undefined, ['deprecate'].concat(_slice.call(arguments))); } }); -enifed('ember-debug/handlers', ['exports', 'ember-debug/is-plain-function', 'ember-debug/deprecate'], function (exports, _emberDebugIsPlainFunction, _emberDebugDeprecate) { - 'use strict'; +enifed("ember-debug/handlers", ["exports"], function (exports) { + "use strict"; - exports.generateTestAsFunctionDeprecation = generateTestAsFunctionDeprecation; exports.registerHandler = registerHandler; exports.invoke = invoke; var HANDLERS = {}; exports.HANDLERS = HANDLERS; - function generateTestAsFunctionDeprecation(source) { - return 'Calling `' + source + '` with a function argument is deprecated. Please ' + 'use `!!Constructor` for constructors, or an `IIFE` to compute the test for deprecation. ' + 'In a future version, functions will be treated as truthy values instead of being executed.'; - } - - function normalizeTest(test, source) { - if (_emberDebugIsPlainFunction.default(test)) { - _emberDebugDeprecate.default(generateTestAsFunctionDeprecation(source), false, { id: 'ember-debug.deprecate-test-as-function', until: '2.5.0' }); - - return test(); - } - - return test; - } - function registerHandler(type, callback) { var nextHandler = HANDLERS[type] || function () {}; HANDLERS[type] = function (message, options) { callback(message, options, nextHandler); }; } function invoke(type, message, test, options) { - if (normalizeTest(test, 'Ember.' + type)) { + if (test) { return; } var handlerForType = HANDLERS[type]; @@ -6470,11 +6462,11 @@ if (handlerForType) { handlerForType(message, options); } } }); -enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug', 'ember-metal/features', 'ember-metal/error', 'ember-metal/logger', 'ember-metal/environment', 'ember-debug/deprecate', 'ember-debug/warn', 'ember-debug/is-plain-function', 'ember-debug/handlers'], function (exports, _emberMetalCore, _emberMetalDebug, _emberMetalFeatures, _emberMetalError, _emberMetalLogger, _emberMetalEnvironment, _emberDebugDeprecate, _emberDebugWarn, _emberDebugIsPlainFunction, _emberDebugHandlers) { +enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug', 'ember-metal/features', 'ember-metal/error', 'ember-metal/logger', 'ember-metal/environment', 'ember-debug/deprecate', 'ember-debug/warn'], function (exports, _emberMetalCore, _emberMetalDebug, _emberMetalFeatures, _emberMetalError, _emberMetalLogger, _emberMetalEnvironment, _emberDebugDeprecate, _emberDebugWarn) { 'use strict'; exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags; /** @@ -6507,21 +6499,11 @@ @param {Boolean} test Must be truthy for the assertion to pass. If falsy, an exception will be thrown. @public */ _emberMetalDebug.setDebugFunction('assert', function assert(desc, test) { - var throwAssertion = undefined; - - if (_emberDebugIsPlainFunction.default(test)) { - _emberMetalDebug.deprecate(_emberDebugHandlers.generateTestAsFunctionDeprecation('Ember.assert'), false, { id: 'ember-debug.deprecate-test-as-function', until: '2.5.0' }); - - throwAssertion = !test(); - } else { - throwAssertion = !test; - } - - if (throwAssertion) { + if (!test) { throw new _emberMetalError.default('Assertion Failed: ' + desc); } }); /** @@ -6783,19 +6765,10 @@ exports.runningNonEmberDebugJS = runningNonEmberDebugJS; if (runningNonEmberDebugJS) { _emberMetalDebug.warn('Please use `ember.debug.js` instead of `ember.js` for development and debugging.'); } }); -enifed('ember-debug/is-plain-function', ['exports'], function (exports) { - 'use strict'; - - exports.default = isPlainFunction; - - function isPlainFunction(test) { - return typeof test === 'function' && test.PrototypeMixin === undefined; - } -}); enifed('ember-debug/warn', ['exports', 'ember-metal/logger', 'ember-metal/debug', 'ember-debug/handlers'], function (exports, _emberMetalLogger, _emberMetalDebug, _emberDebugHandlers) { 'use strict'; var _slice = Array.prototype.slice; exports.registerHandler = registerHandler; @@ -9055,31 +9028,24 @@ */ 'use strict'; exports.default = linkRenderNode; + exports.linkParamsFor = linkParamsFor; function linkRenderNode(renderNode, env, scope, path, params, hash) { if (renderNode.streamUnsubscribers) { return true; } var keyword = env.hooks.keywords[path]; if (keyword && keyword.link) { keyword.link(renderNode.getState(), params, hash); + } else if (path === 'unbound') { + return true; } else { - switch (path) { - case 'unbound': - return true; - case 'unless': - case 'if': - params[0] = shouldDisplay(params[0], toBool);break; - case 'each': - params[0] = eachParam(params[0]);break; - case 'with': - params[0] = shouldDisplay(params[0], identity);break; - } + linkParamsFor(path, params); } // If there is a dot in the path, we need to subscribe to the arguments in the // closure component as well. @@ -9112,10 +9078,22 @@ // recomputed on subsequent re-renders because they are // streams. return true; } + function linkParamsFor(path, params) { + switch (path) { + case 'unless': + case 'if': + params[0] = shouldDisplay(params[0], toBool);break; + case 'each': + params[0] = eachParam(params[0]);break; + case 'with': + params[0] = shouldDisplay(params[0], identity);break; + } + } + function eachParam(list) { var listChange = getKey(list, '[]'); var stream = _emberMetalStreamsUtils.chain(list, function () { _emberMetalStreamsUtils.read(listChange); @@ -9175,11 +9153,11 @@ function lookupHelperHook(env, scope, helperName) { return _emberHtmlbarsSystemLookupHelper.default(helperName, scope.getSelf(), env); } }); -enifed('ember-htmlbars/hooks/subexpr', ['exports', 'ember-htmlbars/system/lookup-helper', 'ember-htmlbars/system/invoke-helper', 'ember-metal/streams/utils'], function (exports, _emberHtmlbarsSystemLookupHelper, _emberHtmlbarsSystemInvokeHelper, _emberMetalStreamsUtils) { +enifed('ember-htmlbars/hooks/subexpr', ['exports', 'ember-htmlbars/system/lookup-helper', 'ember-htmlbars/system/invoke-helper', 'ember-metal/streams/utils', 'ember-htmlbars/hooks/link-render-node'], function (exports, _emberHtmlbarsSystemLookupHelper, _emberHtmlbarsSystemInvokeHelper, _emberMetalStreamsUtils, _emberHtmlbarsHooksLinkRenderNode) { /** @module ember @submodule ember-htmlbars */ @@ -9194,10 +9172,12 @@ var keyword = env.hooks.keywords[helperName]; if (keyword) { return keyword(null, env, scope, params, hash, null, null); } + _emberHtmlbarsHooksLinkRenderNode.linkParamsFor(helperName, params); + var label = labelForSubexpr(params, hash, helperName); var helper = _emberHtmlbarsSystemLookupHelper.default(helperName, scope.getSelf(), env); var helperStream = _emberHtmlbarsSystemInvokeHelper.buildHelperStream(helper, params, hash, null, env, scope, label); @@ -10333,11 +10313,11 @@ @submodule ember-templates */ 'use strict'; - _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.0-beta.1'; + _emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.0-beta.2'; /** The `{{outlet}}` helper lets you specify where a child route will render in your template. An important use of the `{{outlet}}` helper is in your application's `application.hbs` file: @@ -15256,11 +15236,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.6.0-beta.1 + @version 2.6.0-beta.2 @public */ if ('undefined' === typeof Ember) { // Create core object. Make it act like an instance of Ember.Namespace so that @@ -15298,15 +15278,15 @@ /** The semantic version. @property VERSION @type String - @default '2.6.0-beta.1' + @default '2.6.0-beta.2' @static @public */ - Ember.VERSION = '2.6.0-beta.1'; + Ember.VERSION = '2.6.0-beta.2'; /** 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 @@ -16445,11 +16425,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)); @@ -17604,15 +17584,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'} @@ -17626,16 +17602,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) { - _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); @@ -25353,18 +25328,15 @@ triggered the loading event is the second parameter. ```javascript App.ApplicationRoute = Ember.Route.extend({ actions: { loading: function(transition, route) { - var view = Ember.View.create({ - classNames: ['app-loading'] - }) - .append(); - this.router.one('didTransition', function() { - view.destroy(); + let controller = this.controllerFor('foo'); + controller.set('currentlyLoading', true); + transition.finally(function() { + controller.set('currentlyLoading', false); }); - return true; // Bubble the loading event } } }); ``` @event loading @@ -28621,11 +28593,11 @@ } return _emberRoutingHtmlbarsKeywordsClosureAction.default(morph, env, scope, params, hash, template, inverse, visitor); }; }); -enifed('ember-routing-htmlbars/keywords/closure-action', ['exports', 'ember-metal/streams/stream', 'ember-metal/streams/utils', 'ember-metal/symbol', 'ember-metal/property_get', 'ember-htmlbars/hooks/subexpr', 'ember-metal/error', 'ember-metal/run_loop', 'ember-metal/instrumentation'], function (exports, _emberMetalStreamsStream, _emberMetalStreamsUtils, _emberMetalSymbol, _emberMetalProperty_get, _emberHtmlbarsHooksSubexpr, _emberMetalError, _emberMetalRun_loop, _emberMetalInstrumentation) { +enifed('ember-routing-htmlbars/keywords/closure-action', ['exports', 'ember-metal/streams/stream', 'ember-metal/streams/utils', 'ember-metal/symbol', 'ember-metal/property_get', 'ember-htmlbars/hooks/subexpr', 'ember-metal/error', 'ember-metal/run_loop', 'ember-metal/instrumentation', 'ember-metal/is_none'], function (exports, _emberMetalStreamsStream, _emberMetalStreamsUtils, _emberMetalSymbol, _emberMetalProperty_get, _emberHtmlbarsHooksSubexpr, _emberMetalError, _emberMetalRun_loop, _emberMetalInstrumentation, _emberMetalIs_none) { 'use strict'; exports.default = closureAction; var INVOKE = _emberMetalSymbol.default('INVOKE'); exports.INVOKE = INVOKE; @@ -28636,12 +28608,18 @@ function closureAction(morph, env, scope, params, hash, template, inverse, visitor) { var s = new _emberMetalStreamsStream.Stream(function () { var rawAction = params[0]; var actionArguments = _emberMetalStreamsUtils.readArray(params.slice(1, params.length)); - var target, action, valuePath; - if (rawAction[INVOKE]) { + var target = undefined, + action = undefined, + valuePath = undefined; + + if (_emberMetalIs_none.default(rawAction)) { + var label = _emberHtmlbarsHooksSubexpr.labelForSubexpr(params, hash, 'action'); + throw new _emberMetalError.default('Action passed is null or undefined in ' + label + ' from ' + _emberMetalStreamsUtils.read(scope.getSelf()) + '.'); + } else if (rawAction[INVOKE]) { // on-change={{action (mut name)}} target = rawAction; action = rawAction[INVOKE]; } else { // on-change={{action setName}} @@ -36205,22 +36183,15 @@ }, _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 = { ClassMixin: _emberMetalMixin.REQUIRED, @@ -39059,12 +39030,12 @@ enifed('ember-template-compiler/system/calculate-location-display', ['exports'], function (exports) { 'use strict'; exports.default = calculateLocationDisplay; - function calculateLocationDisplay(moduleName) { - var loc = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; + function calculateLocationDisplay(moduleName, _loc) { + var loc = _loc || {}; var _ref = loc.start || {}; var column = _ref.column; var line = _ref.line; @@ -39164,11 +39135,11 @@ options.plugins = plugins; options.buildMeta = function buildMeta(program) { return { fragmentReason: fragmentReason(program), - revision: 'Ember@2.6.0-beta.1', + revision: 'Ember@2.6.0-beta.2', loc: program.loc, moduleName: options.moduleName }; }; @@ -39397,11 +39368,11 @@ var keyboardEventTypes, mouseEventTypes, buildKeyboardEvent, buildMouseEvent, buildBasicEvent, fireEvent, focus; var defaultEventOptions = { canBubble: true, cancelable: true }; keyboardEventTypes = ['keydown', 'keypress', 'keyup']; - mouseEventTypes = ['click', 'mousedown', 'mouseup', 'dblclick', 'mousenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover']; + mouseEventTypes = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover']; buildKeyboardEvent = function buildKeyboardEvent(type) { var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; var event = undefined; @@ -40628,52 +40599,10 @@ } }; exports.default = _emberMetalMixin.Mixin.create(AttrsProxyMixin); }); -enifed('ember-views/compat/metamorph_view', ['exports', 'ember-metal/debug', 'ember-views/views/view', 'ember-metal/mixin'], function (exports, _emberMetalDebug, _emberViewsViewsView, _emberMetalMixin) { - 'use strict'; - - /** - @module ember - @submodule ember-views - */ - - // The `morph` and `outerHTML` properties are internal only - // and not observable. - - /** - @class _Metamorph - @namespace Ember - @private - */ - var _Metamorph = _emberMetalMixin.Mixin.create({ - tagName: '', - __metamorphType: 'Ember._Metamorph', - - instrumentName: 'metamorph', - - init: function () { - this._super.apply(this, arguments); - _emberMetalDebug.deprecate('Supplying a tagName to Metamorph views is unreliable and is deprecated. ' + 'You may be setting the tagName on a Handlebars helper that creates a Metamorph.', !this.tagName, { id: 'ember-views.metamorph-tag-name', until: '2.4.0' }); - - _emberMetalDebug.deprecate('Using ' + this.__metamorphType + ' is deprecated.', false, { id: 'ember-views.metamorph', until: '2.4.0' }); - } - }); - - exports._Metamorph = _Metamorph; - /** - @class _MetamorphView - @namespace Ember - @extends Ember.View - @uses Ember._Metamorph - @private - */ - exports.default = _emberViewsViewsView.default.extend(_Metamorph, { - __metamorphType: 'Ember._MetamorphView' - }); -}); enifed('ember-views/component_lookup', ['exports', 'ember-metal/core', 'ember-metal/debug', 'ember-runtime/system/object', 'ember-htmlbars/system/lookup-helper', 'container/owner'], function (exports, _emberMetalCore, _emberMetalDebug, _emberRuntimeSystemObject, _emberHtmlbarsSystemLookupHelper, _containerOwner) { 'use strict'; exports.default = _emberRuntimeSystemObject.default.extend({ invalidName: function (name) { @@ -41259,11 +41188,11 @@ isComponentFactory: true }); exports.default = Component; }); -enifed('ember-views/index', ['exports', 'ember-runtime', 'ember-views/system/jquery', 'ember-views/system/utils', 'ember-views/system/ext', 'ember-views/views/states', 'ember-metal-views', 'ember-views/views/core_view', 'ember-views/views/view', 'ember-views/components/component', 'ember-views/system/event_dispatcher', 'ember-views/mixins/view_target_action_support', 'ember-views/component_lookup', 'ember-views/views/checkbox', 'ember-views/mixins/text_support', 'ember-views/views/text_field', 'ember-views/views/text_area', 'ember-views/compat/metamorph_view'], function (exports, _emberRuntime, _emberViewsSystemJquery, _emberViewsSystemUtils, _emberViewsSystemExt, _emberViewsViewsStates, _emberMetalViews, _emberViewsViewsCore_view, _emberViewsViewsView, _emberViewsComponentsComponent, _emberViewsSystemEvent_dispatcher, _emberViewsMixinsView_target_action_support, _emberViewsComponent_lookup, _emberViewsViewsCheckbox, _emberViewsMixinsText_support, _emberViewsViewsText_field, _emberViewsViewsText_area, _emberViewsCompatMetamorph_view) { +enifed('ember-views/index', ['exports', 'ember-runtime', 'ember-views/system/jquery', 'ember-views/system/utils', 'ember-views/system/ext', 'ember-metal-views', 'ember-views/components/component', 'ember-views/system/event_dispatcher', 'ember-views/mixins/view_target_action_support', 'ember-views/component_lookup', 'ember-views/views/checkbox', 'ember-views/mixins/text_support', 'ember-views/views/text_field', 'ember-views/views/text_area'], function (exports, _emberRuntime, _emberViewsSystemJquery, _emberViewsSystemUtils, _emberViewsSystemExt, _emberMetalViews, _emberViewsComponentsComponent, _emberViewsSystemEvent_dispatcher, _emberViewsMixinsView_target_action_support, _emberViewsComponent_lookup, _emberViewsViewsCheckbox, _emberViewsMixinsText_support, _emberViewsViewsText_field, _emberViewsViewsText_area) { /** @module ember @submodule ember-views */ @@ -41288,18 +41217,10 @@ var ViewUtils = _emberRuntime.default.ViewUtils = {}; ViewUtils.isSimpleClick = _emberViewsSystemUtils.isSimpleClick; ViewUtils.getViewClientRects = _emberViewsSystemUtils.getViewClientRects; ViewUtils.getViewBoundingClientRect = _emberViewsSystemUtils.getViewBoundingClientRect; - if (_emberRuntime.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT) { - _emberRuntime.default.CoreView = _emberViewsViewsCore_view.DeprecatedCoreView; - _emberRuntime.default.View = _emberViewsViewsView.DeprecatedView; - _emberRuntime.default.View.states = _emberViewsViewsStates.states; - _emberRuntime.default.View.cloneStates = _emberViewsViewsStates.cloneStates; - _emberRuntime.default.View._Renderer = _emberMetalViews.Renderer; - } - _emberRuntime.default._Renderer = _emberMetalViews.Renderer; _emberRuntime.default.Checkbox = _emberViewsViewsCheckbox.default; _emberRuntime.default.TextField = _emberViewsViewsText_field.default; _emberRuntime.default.TextArea = _emberViewsViewsText_area.default; @@ -41307,16 +41228,10 @@ _emberRuntime.default.TextSupport = _emberViewsMixinsText_support.default; _emberRuntime.default.ComponentLookup = _emberViewsComponent_lookup.default; _emberRuntime.default.Component = _emberViewsComponentsComponent.default; _emberRuntime.default.EventDispatcher = _emberViewsSystemEvent_dispatcher.default; - // Deprecated: - if (_emberRuntime.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT) { - _emberRuntime.default._Metamorph = _emberViewsCompatMetamorph_view._Metamorph; - _emberRuntime.default._MetamorphView = _emberViewsCompatMetamorph_view.default; - } - // END EXPORTS exports.default = _emberRuntime.default; }); // for the side effect of extending Ember.run.queues @@ -44291,18 +44206,10 @@ CoreView.reopenClass({ isViewFactory: true }); - var DeprecatedCoreView = CoreView.extend({ - init: function () { - _emberMetalDebug.deprecate('Ember.CoreView is deprecated. Please use Ember.View.', false, { id: 'ember-views.core-view', until: '2.4.0' }); - this._super.apply(this, arguments); - } - }); - - exports.DeprecatedCoreView = DeprecatedCoreView; var _domHelper; function domHelper() { return _domHelper = _domHelper || _require.default('ember-htmlbars/system/dom-helper').default; } @@ -44697,11 +44604,11 @@ @public */ max: null }); }); -enifed('ember-views/views/view', ['exports', 'ember-metal/core', 'ember-metal/debug', 'ember-views/system/ext', 'ember-views/views/core_view', 'ember-views/mixins/view_context_support', 'ember-views/mixins/view_child_views_support', 'ember-views/mixins/legacy_child_views_support', 'ember-views/mixins/view_state_support', 'ember-views/mixins/template_rendering_support', 'ember-views/mixins/class_names_support', 'ember-views/mixins/legacy_view_support', 'ember-views/mixins/instrumentation_support', 'ember-views/mixins/aria_role_support', 'ember-views/mixins/visibility_support', 'ember-views/compat/attrs-proxy', 'ember-views/mixins/view_support', 'ember-metal/deprecate_property'], function (exports, _emberMetalCore, _emberMetalDebug, _emberViewsSystemExt, _emberViewsViewsCore_view, _emberViewsMixinsView_context_support, _emberViewsMixinsView_child_views_support, _emberViewsMixinsLegacy_child_views_support, _emberViewsMixinsView_state_support, _emberViewsMixinsTemplate_rendering_support, _emberViewsMixinsClass_names_support, _emberViewsMixinsLegacy_view_support, _emberViewsMixinsInstrumentation_support, _emberViewsMixinsAria_role_support, _emberViewsMixinsVisibility_support, _emberViewsCompatAttrsProxy, _emberViewsMixinsView_support, _emberMetalDeprecate_property) { +enifed('ember-views/views/view', ['exports', 'ember-views/system/ext', 'ember-views/views/core_view', 'ember-views/mixins/view_context_support', 'ember-views/mixins/view_child_views_support', 'ember-views/mixins/legacy_child_views_support', 'ember-views/mixins/view_state_support', 'ember-views/mixins/template_rendering_support', 'ember-views/mixins/class_names_support', 'ember-views/mixins/legacy_view_support', 'ember-views/mixins/instrumentation_support', 'ember-views/mixins/aria_role_support', 'ember-views/mixins/visibility_support', 'ember-views/compat/attrs-proxy', 'ember-views/mixins/view_support'], function (exports, _emberViewsSystemExt, _emberViewsViewsCore_view, _emberViewsMixinsView_context_support, _emberViewsMixinsView_child_views_support, _emberViewsMixinsLegacy_child_views_support, _emberViewsMixinsView_state_support, _emberViewsMixinsTemplate_rendering_support, _emberViewsMixinsClass_names_support, _emberViewsMixinsLegacy_view_support, _emberViewsMixinsInstrumentation_support, _emberViewsMixinsAria_role_support, _emberViewsMixinsVisibility_support, _emberViewsCompatAttrsProxy, _emberViewsMixinsView_support) { // jQuery, Ember.lookup, // Ember.ENV 'use strict'; /** @@ -45355,16 +45262,10 @@ _classStringForProperty: function (parsedPath) { return View._classStringForValue(parsedPath.path, parsedPath.stream.value(), parsedPath.className, parsedPath.falsyClassName); } }); - _emberMetalDeprecate_property.deprecateProperty(View.prototype, 'currentState', '_currentState', { - id: 'ember-view.current-state', - until: '2.3.0', - url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-component-currentstate' - }); - // jscs:enable validateIndentation /* Describe how the specified actions should behave in the various states that a view can exist in. Possible states: @@ -45401,37 +45302,15 @@ @private */ views: {} }); - function viewDeprecationMessage() { - _emberMetalDebug.deprecate('Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy.', !!_emberMetalCore.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT, { - url: 'http://emberjs.com/deprecations/v1.x/#toc_ember-view', - id: 'ember-views.view-deprecated', - until: '2.4.0' - }); - } - - var DeprecatedView = View.extend({ - init: function () { - viewDeprecationMessage(); - this._super.apply(this, arguments); - } - }); - - DeprecatedView.reopen = function () { - viewDeprecationMessage(); - View.reopen.apply(View, arguments); - return this; - }; - exports.default = View; exports.ViewContextSupport = _emberViewsMixinsView_context_support.default; exports.ViewChildViewsSupport = _emberViewsMixinsView_child_views_support.default; exports.ViewStateSupport = _emberViewsMixinsView_state_support.default; exports.TemplateRenderingSupport = _emberViewsMixinsTemplate_rendering_support.default; exports.ClassNamesSupport = _emberViewsMixinsClass_names_support.default; - exports.DeprecatedView = DeprecatedView; }); // for the side effect of extending Ember.run.queues enifed('htmlbars-runtime/expression-visitor', ['exports'], function (exports) { /** # Expression Nodes: