ember-source 2.6.0.beta.1 → 2.6.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-runtime.js +19 -26
- data/dist/ember-template-compiler.js +17 -56
- data/dist/ember-testing.js +7 -41
- data/dist/ember.debug.js +63 -184
- data/dist/ember.js +63 -184
- data/dist/ember.min.js +14 -14
- data/dist/ember.prod.js +57 -130
- metadata +2 -2
data/dist/ember.js
CHANGED
@@ -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.6.0-beta.
|
9
|
+
* @version 2.6.0-beta.2
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, require, Ember;
|
@@ -1682,7 +1682,7 @@ enifed('container/registry', ['exports', 'ember-metal/features', 'ember-metal/de
|
|
1682
1682
|
|
1683
1683
|
exports.privatize = privatize;
|
1684
1684
|
|
1685
|
-
var VALID_FULL_NAME_REGEXP = /^[^:]
|
1685
|
+
var VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/;
|
1686
1686
|
|
1687
1687
|
/**
|
1688
1688
|
A registry used to store factory and option information keyed
|
@@ -1992,7 +1992,9 @@ enifed('container/registry', ['exports', 'ember-metal/features', 'ember-metal/de
|
|
1992
1992
|
@return {Boolean}
|
1993
1993
|
*/
|
1994
1994
|
has: function (fullName, options) {
|
1995
|
-
|
1995
|
+
if (!this.isValidFullName(fullName)) {
|
1996
|
+
return false;
|
1997
|
+
}
|
1996
1998
|
|
1997
1999
|
var source = undefined;
|
1998
2000
|
|
@@ -2285,12 +2287,17 @@ enifed('container/registry', ['exports', 'ember-metal/features', 'ember-metal/de
|
|
2285
2287
|
},
|
2286
2288
|
|
2287
2289
|
validateFullName: function (fullName) {
|
2288
|
-
if (!
|
2290
|
+
if (!this.isValidFullName(fullName)) {
|
2289
2291
|
throw new TypeError('Invalid Fullname, expected: `type:name` got: ' + fullName);
|
2290
2292
|
}
|
2293
|
+
|
2291
2294
|
return true;
|
2292
2295
|
},
|
2293
2296
|
|
2297
|
+
isValidFullName: function (fullName) {
|
2298
|
+
return !!VALID_FULL_NAME_REGEXP.test(fullName);
|
2299
|
+
},
|
2300
|
+
|
2294
2301
|
validateInjections: function (injections) {
|
2295
2302
|
if (!injections) {
|
2296
2303
|
return;
|
@@ -6424,30 +6431,15 @@ enifed('ember-debug/deprecate', ['exports', 'ember-metal/core', 'ember-metal/err
|
|
6424
6431
|
_emberDebugHandlers.invoke.apply(undefined, ['deprecate'].concat(_slice.call(arguments)));
|
6425
6432
|
}
|
6426
6433
|
});
|
6427
|
-
enifed(
|
6428
|
-
|
6434
|
+
enifed("ember-debug/handlers", ["exports"], function (exports) {
|
6435
|
+
"use strict";
|
6429
6436
|
|
6430
|
-
exports.generateTestAsFunctionDeprecation = generateTestAsFunctionDeprecation;
|
6431
6437
|
exports.registerHandler = registerHandler;
|
6432
6438
|
exports.invoke = invoke;
|
6433
6439
|
var HANDLERS = {};
|
6434
6440
|
|
6435
6441
|
exports.HANDLERS = HANDLERS;
|
6436
6442
|
|
6437
|
-
function generateTestAsFunctionDeprecation(source) {
|
6438
|
-
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.';
|
6439
|
-
}
|
6440
|
-
|
6441
|
-
function normalizeTest(test, source) {
|
6442
|
-
if (_emberDebugIsPlainFunction.default(test)) {
|
6443
|
-
_emberDebugDeprecate.default(generateTestAsFunctionDeprecation(source), false, { id: 'ember-debug.deprecate-test-as-function', until: '2.5.0' });
|
6444
|
-
|
6445
|
-
return test();
|
6446
|
-
}
|
6447
|
-
|
6448
|
-
return test;
|
6449
|
-
}
|
6450
|
-
|
6451
6443
|
function registerHandler(type, callback) {
|
6452
6444
|
var nextHandler = HANDLERS[type] || function () {};
|
6453
6445
|
|
@@ -6457,7 +6449,7 @@ enifed('ember-debug/handlers', ['exports', 'ember-debug/is-plain-function', 'emb
|
|
6457
6449
|
}
|
6458
6450
|
|
6459
6451
|
function invoke(type, message, test, options) {
|
6460
|
-
if (
|
6452
|
+
if (test) {
|
6461
6453
|
return;
|
6462
6454
|
}
|
6463
6455
|
|
@@ -6472,7 +6464,7 @@ enifed('ember-debug/handlers', ['exports', 'ember-debug/is-plain-function', 'emb
|
|
6472
6464
|
}
|
6473
6465
|
}
|
6474
6466
|
});
|
6475
|
-
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'
|
6467
|
+
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) {
|
6476
6468
|
'use strict';
|
6477
6469
|
|
6478
6470
|
exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;
|
@@ -6509,17 +6501,7 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
6509
6501
|
@public
|
6510
6502
|
*/
|
6511
6503
|
_emberMetalDebug.setDebugFunction('assert', function assert(desc, test) {
|
6512
|
-
|
6513
|
-
|
6514
|
-
if (_emberDebugIsPlainFunction.default(test)) {
|
6515
|
-
_emberMetalDebug.deprecate(_emberDebugHandlers.generateTestAsFunctionDeprecation('Ember.assert'), false, { id: 'ember-debug.deprecate-test-as-function', until: '2.5.0' });
|
6516
|
-
|
6517
|
-
throwAssertion = !test();
|
6518
|
-
} else {
|
6519
|
-
throwAssertion = !test;
|
6520
|
-
}
|
6521
|
-
|
6522
|
-
if (throwAssertion) {
|
6504
|
+
if (!test) {
|
6523
6505
|
throw new _emberMetalError.default('Assertion Failed: ' + desc);
|
6524
6506
|
}
|
6525
6507
|
});
|
@@ -6785,15 +6767,6 @@ enifed('ember-debug/index', ['exports', 'ember-metal/core', 'ember-metal/debug',
|
|
6785
6767
|
_emberMetalDebug.warn('Please use `ember.debug.js` instead of `ember.js` for development and debugging.');
|
6786
6768
|
}
|
6787
6769
|
});
|
6788
|
-
enifed('ember-debug/is-plain-function', ['exports'], function (exports) {
|
6789
|
-
'use strict';
|
6790
|
-
|
6791
|
-
exports.default = isPlainFunction;
|
6792
|
-
|
6793
|
-
function isPlainFunction(test) {
|
6794
|
-
return typeof test === 'function' && test.PrototypeMixin === undefined;
|
6795
|
-
}
|
6796
|
-
});
|
6797
6770
|
enifed('ember-debug/warn', ['exports', 'ember-metal/logger', 'ember-metal/debug', 'ember-debug/handlers'], function (exports, _emberMetalLogger, _emberMetalDebug, _emberDebugHandlers) {
|
6798
6771
|
'use strict';
|
6799
6772
|
|
@@ -9057,6 +9030,7 @@ enifed('ember-htmlbars/hooks/link-render-node', ['exports', 'ember-htmlbars/util
|
|
9057
9030
|
'use strict';
|
9058
9031
|
|
9059
9032
|
exports.default = linkRenderNode;
|
9033
|
+
exports.linkParamsFor = linkParamsFor;
|
9060
9034
|
|
9061
9035
|
function linkRenderNode(renderNode, env, scope, path, params, hash) {
|
9062
9036
|
if (renderNode.streamUnsubscribers) {
|
@@ -9066,18 +9040,10 @@ enifed('ember-htmlbars/hooks/link-render-node', ['exports', 'ember-htmlbars/util
|
|
9066
9040
|
var keyword = env.hooks.keywords[path];
|
9067
9041
|
if (keyword && keyword.link) {
|
9068
9042
|
keyword.link(renderNode.getState(), params, hash);
|
9043
|
+
} else if (path === 'unbound') {
|
9044
|
+
return true;
|
9069
9045
|
} else {
|
9070
|
-
|
9071
|
-
case 'unbound':
|
9072
|
-
return true;
|
9073
|
-
case 'unless':
|
9074
|
-
case 'if':
|
9075
|
-
params[0] = shouldDisplay(params[0], toBool);break;
|
9076
|
-
case 'each':
|
9077
|
-
params[0] = eachParam(params[0]);break;
|
9078
|
-
case 'with':
|
9079
|
-
params[0] = shouldDisplay(params[0], identity);break;
|
9080
|
-
}
|
9046
|
+
linkParamsFor(path, params);
|
9081
9047
|
}
|
9082
9048
|
|
9083
9049
|
// If there is a dot in the path, we need to subscribe to the arguments in the
|
@@ -9114,6 +9080,18 @@ enifed('ember-htmlbars/hooks/link-render-node', ['exports', 'ember-htmlbars/util
|
|
9114
9080
|
return true;
|
9115
9081
|
}
|
9116
9082
|
|
9083
|
+
function linkParamsFor(path, params) {
|
9084
|
+
switch (path) {
|
9085
|
+
case 'unless':
|
9086
|
+
case 'if':
|
9087
|
+
params[0] = shouldDisplay(params[0], toBool);break;
|
9088
|
+
case 'each':
|
9089
|
+
params[0] = eachParam(params[0]);break;
|
9090
|
+
case 'with':
|
9091
|
+
params[0] = shouldDisplay(params[0], identity);break;
|
9092
|
+
}
|
9093
|
+
}
|
9094
|
+
|
9117
9095
|
function eachParam(list) {
|
9118
9096
|
var listChange = getKey(list, '[]');
|
9119
9097
|
|
@@ -9177,7 +9155,7 @@ enifed('ember-htmlbars/hooks/lookup-helper', ['exports', 'ember-htmlbars/system/
|
|
9177
9155
|
return _emberHtmlbarsSystemLookupHelper.default(helperName, scope.getSelf(), env);
|
9178
9156
|
}
|
9179
9157
|
});
|
9180
|
-
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) {
|
9158
|
+
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) {
|
9181
9159
|
/**
|
9182
9160
|
@module ember
|
9183
9161
|
@submodule ember-htmlbars
|
@@ -9196,6 +9174,8 @@ enifed('ember-htmlbars/hooks/subexpr', ['exports', 'ember-htmlbars/system/lookup
|
|
9196
9174
|
return keyword(null, env, scope, params, hash, null, null);
|
9197
9175
|
}
|
9198
9176
|
|
9177
|
+
_emberHtmlbarsHooksLinkRenderNode.linkParamsFor(helperName, params);
|
9178
|
+
|
9199
9179
|
var label = labelForSubexpr(params, hash, helperName);
|
9200
9180
|
var helper = _emberHtmlbarsSystemLookupHelper.default(helperName, scope.getSelf(), env);
|
9201
9181
|
|
@@ -10335,7 +10315,7 @@ enifed('ember-htmlbars/keywords/outlet', ['exports', 'ember-metal/debug', 'ember
|
|
10335
10315
|
|
10336
10316
|
'use strict';
|
10337
10317
|
|
10338
|
-
_emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.0-beta.
|
10318
|
+
_emberHtmlbarsTemplatesTopLevelView.default.meta.revision = 'Ember@2.6.0-beta.2';
|
10339
10319
|
|
10340
10320
|
/**
|
10341
10321
|
The `{{outlet}}` helper lets you specify where a child route will render in
|
@@ -15258,7 +15238,7 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
15258
15238
|
|
15259
15239
|
@class Ember
|
15260
15240
|
@static
|
15261
|
-
@version 2.6.0-beta.
|
15241
|
+
@version 2.6.0-beta.2
|
15262
15242
|
@public
|
15263
15243
|
*/
|
15264
15244
|
|
@@ -15300,11 +15280,11 @@ enifed('ember-metal/core', ['exports', 'require'], function (exports, _require)
|
|
15300
15280
|
|
15301
15281
|
@property VERSION
|
15302
15282
|
@type String
|
15303
|
-
@default '2.6.0-beta.
|
15283
|
+
@default '2.6.0-beta.2'
|
15304
15284
|
@static
|
15305
15285
|
@public
|
15306
15286
|
*/
|
15307
|
-
Ember.VERSION = '2.6.0-beta.
|
15287
|
+
Ember.VERSION = '2.6.0-beta.2';
|
15308
15288
|
|
15309
15289
|
/**
|
15310
15290
|
The hash of environment variables used to control various configuration
|
@@ -16447,7 +16427,7 @@ enifed('ember-metal/injected_property', ['exports', 'ember-metal/debug', 'ember-
|
|
16447
16427
|
|
16448
16428
|
function injectedPropertyGet(keyName) {
|
16449
16429
|
var desc = this[keyName];
|
16450
|
-
var owner = _containerOwner.getOwner(this);
|
16430
|
+
var owner = _containerOwner.getOwner(this) || this.container; // fallback to `container` for backwards compat
|
16451
16431
|
|
16452
16432
|
_emberMetalDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type);
|
16453
16433
|
_emberMetalDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);
|
@@ -17606,11 +17586,7 @@ enifed('ember-metal/map', ['exports', 'ember-metal/core', 'ember-metal/utils', '
|
|
17606
17586
|
exports.Map = Map;
|
17607
17587
|
exports.MapWithDefault = MapWithDefault;
|
17608
17588
|
});
|
17609
|
-
enifed('ember-metal/merge', ['exports'
|
17610
|
-
'use strict';
|
17611
|
-
|
17612
|
-
exports.default = merge;
|
17613
|
-
|
17589
|
+
enifed('ember-metal/merge', ['exports'], function (exports) {
|
17614
17590
|
/**
|
17615
17591
|
Merge the contents of two objects together into the first object.
|
17616
17592
|
|
@@ -17628,12 +17604,11 @@ enifed('ember-metal/merge', ['exports', 'ember-metal/debug', 'ember-metal/featur
|
|
17628
17604
|
@return {Object}
|
17629
17605
|
@public
|
17630
17606
|
*/
|
17607
|
+
'use strict';
|
17631
17608
|
|
17632
|
-
|
17633
|
-
_emberMetalDebug.deprecate('Usage of `Ember.merge` is deprecated, use `Ember.assign` instead.', false, {
|
17634
|
-
id: 'ember-metal.merge', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-merge'
|
17635
|
-
});
|
17609
|
+
exports.default = merge;
|
17636
17610
|
|
17611
|
+
function merge(original, updates) {
|
17637
17612
|
if (!updates || typeof updates !== 'object') {
|
17638
17613
|
return original;
|
17639
17614
|
}
|
@@ -25355,14 +25330,11 @@ enifed('ember-routing/system/route', ['exports', 'ember-metal/core', 'ember-meta
|
|
25355
25330
|
App.ApplicationRoute = Ember.Route.extend({
|
25356
25331
|
actions: {
|
25357
25332
|
loading: function(transition, route) {
|
25358
|
-
|
25359
|
-
|
25360
|
-
|
25361
|
-
|
25362
|
-
this.router.one('didTransition', function() {
|
25363
|
-
view.destroy();
|
25333
|
+
let controller = this.controllerFor('foo');
|
25334
|
+
controller.set('currentlyLoading', true);
|
25335
|
+
transition.finally(function() {
|
25336
|
+
controller.set('currentlyLoading', false);
|
25364
25337
|
});
|
25365
|
-
return true; // Bubble the loading event
|
25366
25338
|
}
|
25367
25339
|
}
|
25368
25340
|
});
|
@@ -28623,7 +28595,7 @@ enifed('ember-routing-htmlbars/keywords/action', ['exports', 'htmlbars-runtime/h
|
|
28623
28595
|
return _emberRoutingHtmlbarsKeywordsClosureAction.default(morph, env, scope, params, hash, template, inverse, visitor);
|
28624
28596
|
};
|
28625
28597
|
});
|
28626
|
-
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) {
|
28598
|
+
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) {
|
28627
28599
|
'use strict';
|
28628
28600
|
|
28629
28601
|
exports.default = closureAction;
|
@@ -28638,8 +28610,14 @@ enifed('ember-routing-htmlbars/keywords/closure-action', ['exports', 'ember-meta
|
|
28638
28610
|
var rawAction = params[0];
|
28639
28611
|
var actionArguments = _emberMetalStreamsUtils.readArray(params.slice(1, params.length));
|
28640
28612
|
|
28641
|
-
var target
|
28642
|
-
|
28613
|
+
var target = undefined,
|
28614
|
+
action = undefined,
|
28615
|
+
valuePath = undefined;
|
28616
|
+
|
28617
|
+
if (_emberMetalIs_none.default(rawAction)) {
|
28618
|
+
var label = _emberHtmlbarsHooksSubexpr.labelForSubexpr(params, hash, 'action');
|
28619
|
+
throw new _emberMetalError.default('Action passed is null or undefined in ' + label + ' from ' + _emberMetalStreamsUtils.read(scope.getSelf()) + '.');
|
28620
|
+
} else if (rawAction[INVOKE]) {
|
28643
28621
|
// on-change={{action (mut name)}}
|
28644
28622
|
target = rawAction;
|
28645
28623
|
action = rawAction[INVOKE];
|
@@ -36207,18 +36185,11 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-metal/debug', 'emb
|
|
36207
36185
|
var extension = hasToStringExtension ? ':' + this.toStringExtension() : '';
|
36208
36186
|
var ret = '<' + this.constructor.toString() + ':' + _emberMetalUtils.guidFor(this) + extension + '>';
|
36209
36187
|
|
36210
|
-
this.toString = makeToString(ret);
|
36211
36188
|
return ret;
|
36212
36189
|
}, _Mixin$create));
|
36213
36190
|
|
36214
36191
|
CoreObject.PrototypeMixin.ownerConstructor = CoreObject;
|
36215
36192
|
|
36216
|
-
function makeToString(ret) {
|
36217
|
-
return function () {
|
36218
|
-
return ret;
|
36219
|
-
};
|
36220
|
-
}
|
36221
|
-
|
36222
36193
|
CoreObject.__super__ = null;
|
36223
36194
|
|
36224
36195
|
var ClassMixinProps = {
|
@@ -39061,8 +39032,8 @@ enifed('ember-template-compiler/system/calculate-location-display', ['exports'],
|
|
39061
39032
|
|
39062
39033
|
exports.default = calculateLocationDisplay;
|
39063
39034
|
|
39064
|
-
function calculateLocationDisplay(moduleName) {
|
39065
|
-
var loc =
|
39035
|
+
function calculateLocationDisplay(moduleName, _loc) {
|
39036
|
+
var loc = _loc || {};
|
39066
39037
|
|
39067
39038
|
var _ref = loc.start || {};
|
39068
39039
|
|
@@ -39166,7 +39137,7 @@ enifed('ember-template-compiler/system/compile_options', ['exports', 'ember-meta
|
|
39166
39137
|
options.buildMeta = function buildMeta(program) {
|
39167
39138
|
return {
|
39168
39139
|
fragmentReason: fragmentReason(program),
|
39169
|
-
revision: 'Ember@2.6.0-beta.
|
39140
|
+
revision: 'Ember@2.6.0-beta.2',
|
39170
39141
|
loc: program.loc,
|
39171
39142
|
moduleName: options.moduleName
|
39172
39143
|
};
|
@@ -39399,7 +39370,7 @@ enifed('ember-testing/helpers', ['exports', 'ember-metal/property_get', 'ember-m
|
|
39399
39370
|
|
39400
39371
|
var defaultEventOptions = { canBubble: true, cancelable: true };
|
39401
39372
|
keyboardEventTypes = ['keydown', 'keypress', 'keyup'];
|
39402
|
-
mouseEventTypes = ['click', 'mousedown', 'mouseup', 'dblclick', '
|
39373
|
+
mouseEventTypes = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'];
|
39403
39374
|
|
39404
39375
|
buildKeyboardEvent = function buildKeyboardEvent(type) {
|
39405
39376
|
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
|
@@ -40630,48 +40601,6 @@ enifed('ember-views/compat/attrs-proxy', ['exports', 'ember-metal/mixin', 'ember
|
|
40630
40601
|
|
40631
40602
|
exports.default = _emberMetalMixin.Mixin.create(AttrsProxyMixin);
|
40632
40603
|
});
|
40633
|
-
enifed('ember-views/compat/metamorph_view', ['exports', 'ember-metal/debug', 'ember-views/views/view', 'ember-metal/mixin'], function (exports, _emberMetalDebug, _emberViewsViewsView, _emberMetalMixin) {
|
40634
|
-
'use strict';
|
40635
|
-
|
40636
|
-
/**
|
40637
|
-
@module ember
|
40638
|
-
@submodule ember-views
|
40639
|
-
*/
|
40640
|
-
|
40641
|
-
// The `morph` and `outerHTML` properties are internal only
|
40642
|
-
// and not observable.
|
40643
|
-
|
40644
|
-
/**
|
40645
|
-
@class _Metamorph
|
40646
|
-
@namespace Ember
|
40647
|
-
@private
|
40648
|
-
*/
|
40649
|
-
var _Metamorph = _emberMetalMixin.Mixin.create({
|
40650
|
-
tagName: '',
|
40651
|
-
__metamorphType: 'Ember._Metamorph',
|
40652
|
-
|
40653
|
-
instrumentName: 'metamorph',
|
40654
|
-
|
40655
|
-
init: function () {
|
40656
|
-
this._super.apply(this, arguments);
|
40657
|
-
_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' });
|
40658
|
-
|
40659
|
-
_emberMetalDebug.deprecate('Using ' + this.__metamorphType + ' is deprecated.', false, { id: 'ember-views.metamorph', until: '2.4.0' });
|
40660
|
-
}
|
40661
|
-
});
|
40662
|
-
|
40663
|
-
exports._Metamorph = _Metamorph;
|
40664
|
-
/**
|
40665
|
-
@class _MetamorphView
|
40666
|
-
@namespace Ember
|
40667
|
-
@extends Ember.View
|
40668
|
-
@uses Ember._Metamorph
|
40669
|
-
@private
|
40670
|
-
*/
|
40671
|
-
exports.default = _emberViewsViewsView.default.extend(_Metamorph, {
|
40672
|
-
__metamorphType: 'Ember._MetamorphView'
|
40673
|
-
});
|
40674
|
-
});
|
40675
40604
|
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) {
|
40676
40605
|
'use strict';
|
40677
40606
|
|
@@ -41261,7 +41190,7 @@ enifed('ember-views/components/component', ['exports', 'ember-metal/debug', 'emb
|
|
41261
41190
|
|
41262
41191
|
exports.default = Component;
|
41263
41192
|
});
|
41264
|
-
enifed('ember-views/index', ['exports', 'ember-runtime', 'ember-views/system/jquery', 'ember-views/system/utils', 'ember-views/system/ext', 'ember-
|
41193
|
+
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) {
|
41265
41194
|
/**
|
41266
41195
|
@module ember
|
41267
41196
|
@submodule ember-views
|
@@ -41290,14 +41219,6 @@ enifed('ember-views/index', ['exports', 'ember-runtime', 'ember-views/system/jqu
|
|
41290
41219
|
ViewUtils.getViewClientRects = _emberViewsSystemUtils.getViewClientRects;
|
41291
41220
|
ViewUtils.getViewBoundingClientRect = _emberViewsSystemUtils.getViewBoundingClientRect;
|
41292
41221
|
|
41293
|
-
if (_emberRuntime.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT) {
|
41294
|
-
_emberRuntime.default.CoreView = _emberViewsViewsCore_view.DeprecatedCoreView;
|
41295
|
-
_emberRuntime.default.View = _emberViewsViewsView.DeprecatedView;
|
41296
|
-
_emberRuntime.default.View.states = _emberViewsViewsStates.states;
|
41297
|
-
_emberRuntime.default.View.cloneStates = _emberViewsViewsStates.cloneStates;
|
41298
|
-
_emberRuntime.default.View._Renderer = _emberMetalViews.Renderer;
|
41299
|
-
}
|
41300
|
-
|
41301
41222
|
_emberRuntime.default._Renderer = _emberMetalViews.Renderer;
|
41302
41223
|
|
41303
41224
|
_emberRuntime.default.Checkbox = _emberViewsViewsCheckbox.default;
|
@@ -41309,12 +41230,6 @@ enifed('ember-views/index', ['exports', 'ember-runtime', 'ember-views/system/jqu
|
|
41309
41230
|
_emberRuntime.default.Component = _emberViewsComponentsComponent.default;
|
41310
41231
|
_emberRuntime.default.EventDispatcher = _emberViewsSystemEvent_dispatcher.default;
|
41311
41232
|
|
41312
|
-
// Deprecated:
|
41313
|
-
if (_emberRuntime.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT) {
|
41314
|
-
_emberRuntime.default._Metamorph = _emberViewsCompatMetamorph_view._Metamorph;
|
41315
|
-
_emberRuntime.default._MetamorphView = _emberViewsCompatMetamorph_view.default;
|
41316
|
-
}
|
41317
|
-
|
41318
41233
|
// END EXPORTS
|
41319
41234
|
|
41320
41235
|
exports.default = _emberRuntime.default;
|
@@ -44293,14 +44208,6 @@ enifed('ember-views/views/core_view', ['exports', 'ember-metal/debug', 'ember-me
|
|
44293
44208
|
isViewFactory: true
|
44294
44209
|
});
|
44295
44210
|
|
44296
|
-
var DeprecatedCoreView = CoreView.extend({
|
44297
|
-
init: function () {
|
44298
|
-
_emberMetalDebug.deprecate('Ember.CoreView is deprecated. Please use Ember.View.', false, { id: 'ember-views.core-view', until: '2.4.0' });
|
44299
|
-
this._super.apply(this, arguments);
|
44300
|
-
}
|
44301
|
-
});
|
44302
|
-
|
44303
|
-
exports.DeprecatedCoreView = DeprecatedCoreView;
|
44304
44211
|
var _domHelper;
|
44305
44212
|
function domHelper() {
|
44306
44213
|
return _domHelper = _domHelper || _require.default('ember-htmlbars/system/dom-helper').default;
|
@@ -44699,7 +44606,7 @@ enifed('ember-views/views/text_field', ['exports', 'ember-metal/computed', 'embe
|
|
44699
44606
|
max: null
|
44700
44607
|
});
|
44701
44608
|
});
|
44702
|
-
enifed('ember-views/views/view', ['exports', 'ember-
|
44609
|
+
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) {
|
44703
44610
|
// jQuery, Ember.lookup,
|
44704
44611
|
// Ember.ENV
|
44705
44612
|
'use strict';
|
@@ -45357,12 +45264,6 @@ enifed('ember-views/views/view', ['exports', 'ember-metal/core', 'ember-metal/de
|
|
45357
45264
|
}
|
45358
45265
|
});
|
45359
45266
|
|
45360
|
-
_emberMetalDeprecate_property.deprecateProperty(View.prototype, 'currentState', '_currentState', {
|
45361
|
-
id: 'ember-view.current-state',
|
45362
|
-
until: '2.3.0',
|
45363
|
-
url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-component-currentstate'
|
45364
|
-
});
|
45365
|
-
|
45366
45267
|
// jscs:enable validateIndentation
|
45367
45268
|
|
45368
45269
|
/*
|
@@ -45403,34 +45304,12 @@ enifed('ember-views/views/view', ['exports', 'ember-metal/core', 'ember-metal/de
|
|
45403
45304
|
views: {}
|
45404
45305
|
});
|
45405
45306
|
|
45406
|
-
function viewDeprecationMessage() {
|
45407
|
-
_emberMetalDebug.deprecate('Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy.', !!_emberMetalCore.default.ENV._ENABLE_LEGACY_VIEW_SUPPORT, {
|
45408
|
-
url: 'http://emberjs.com/deprecations/v1.x/#toc_ember-view',
|
45409
|
-
id: 'ember-views.view-deprecated',
|
45410
|
-
until: '2.4.0'
|
45411
|
-
});
|
45412
|
-
}
|
45413
|
-
|
45414
|
-
var DeprecatedView = View.extend({
|
45415
|
-
init: function () {
|
45416
|
-
viewDeprecationMessage();
|
45417
|
-
this._super.apply(this, arguments);
|
45418
|
-
}
|
45419
|
-
});
|
45420
|
-
|
45421
|
-
DeprecatedView.reopen = function () {
|
45422
|
-
viewDeprecationMessage();
|
45423
|
-
View.reopen.apply(View, arguments);
|
45424
|
-
return this;
|
45425
|
-
};
|
45426
|
-
|
45427
45307
|
exports.default = View;
|
45428
45308
|
exports.ViewContextSupport = _emberViewsMixinsView_context_support.default;
|
45429
45309
|
exports.ViewChildViewsSupport = _emberViewsMixinsView_child_views_support.default;
|
45430
45310
|
exports.ViewStateSupport = _emberViewsMixinsView_state_support.default;
|
45431
45311
|
exports.TemplateRenderingSupport = _emberViewsMixinsTemplate_rendering_support.default;
|
45432
45312
|
exports.ClassNamesSupport = _emberViewsMixinsClass_names_support.default;
|
45433
|
-
exports.DeprecatedView = DeprecatedView;
|
45434
45313
|
});
|
45435
45314
|
// for the side effect of extending Ember.run.queues
|
45436
45315
|
enifed('htmlbars-runtime/expression-visitor', ['exports'], function (exports) {
|