ember-source 1.13.4.1 → 1.13.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ember-source might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-template-compiler.js +31 -13
- data/dist/ember-testing.js +2 -2
- data/dist/ember.debug.js +95 -57
- data/dist/ember.js +95 -57
- data/dist/ember.min.js +13 -13
- data/dist/ember.prod.js +89 -65
- metadata +2 -2
data/dist/ember.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
6
6
|
* @license Licensed under MIT license
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
8
|
-
* @version 1.13.
|
8
|
+
* @version 1.13.5
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -3426,6 +3426,8 @@ enifed("ember-application/ext/controller", ["exports", "ember-metal/core", "embe
|
|
3426
3426
|
var defaultControllersComputedProperty = _emberMetalComputed.computed(function () {
|
3427
3427
|
var controller = this;
|
3428
3428
|
|
3429
|
+
_emberMetalCore["default"].deprecate("Controller#needs is deprecated, please use Ember.inject.controller() instead");
|
3430
|
+
|
3429
3431
|
return {
|
3430
3432
|
needs: _emberMetalProperty_get.get(controller, "needs"),
|
3431
3433
|
container: _emberMetalProperty_get.get(controller, "container"),
|
@@ -3517,11 +3519,11 @@ enifed("ember-application/ext/controller", ["exports", "ember-metal/core", "embe
|
|
3517
3519
|
/**
|
3518
3520
|
@method controllerFor
|
3519
3521
|
@see {Ember.Route#controllerFor}
|
3520
|
-
@deprecated Use `
|
3522
|
+
@deprecated Use `Ember.inject.controller()` instead.
|
3521
3523
|
@public
|
3522
3524
|
*/
|
3523
3525
|
controllerFor: function (controllerName) {
|
3524
|
-
_emberMetalCore["default"].deprecate("Controller#controllerFor is deprecated, please use
|
3526
|
+
_emberMetalCore["default"].deprecate("Controller#controllerFor is deprecated, please use Ember.inject.controller() instead");
|
3525
3527
|
return _emberRoutingSystemController_for["default"](_emberMetalProperty_get.get(this, "container"), controllerName);
|
3526
3528
|
},
|
3527
3529
|
|
@@ -3539,6 +3541,7 @@ enifed("ember-application/ext/controller", ["exports", "ember-metal/core", "embe
|
|
3539
3541
|
});
|
3540
3542
|
```
|
3541
3543
|
@see {Ember.ControllerMixin#needs}
|
3544
|
+
@deprecated Use `Ember.inject.controller()` instead.
|
3542
3545
|
@property {Object} controllers
|
3543
3546
|
@default null
|
3544
3547
|
@public
|
@@ -8823,7 +8826,7 @@ enifed("ember-htmlbars/keywords/readonly", ["exports", "ember-htmlbars/keywords/
|
|
8823
8826
|
}
|
8824
8827
|
});
|
8825
8828
|
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) {
|
8826
|
-
_emberHtmlbarsTemplatesTopLevelView["default"].meta.revision = "Ember@1.13.
|
8829
|
+
_emberHtmlbarsTemplatesTopLevelView["default"].meta.revision = "Ember@1.13.5";
|
8827
8830
|
|
8828
8831
|
exports["default"] = {
|
8829
8832
|
willRender: function (renderNode, env) {
|
@@ -11948,20 +11951,16 @@ enifed("ember-metal", ["exports", "ember-metal/core", "ember-metal/merge", "embe
|
|
11948
11951
|
_emberMetalCore["default"].addObserver = _emberMetalObserver.addObserver;
|
11949
11952
|
_emberMetalCore["default"].observersFor = _emberMetalObserver.observersFor;
|
11950
11953
|
_emberMetalCore["default"].removeObserver = _emberMetalObserver.removeObserver;
|
11951
|
-
_emberMetalCore["default"].addBeforeObserver = _emberMetalCore["default"].deprecateFunc("Ember.addBeforeObserver is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalObserver._addBeforeObserver);
|
11952
11954
|
_emberMetalCore["default"]._suspendBeforeObserver = _emberMetalObserver._suspendBeforeObserver;
|
11953
11955
|
_emberMetalCore["default"]._suspendBeforeObservers = _emberMetalObserver._suspendBeforeObservers;
|
11954
11956
|
_emberMetalCore["default"]._suspendObserver = _emberMetalObserver._suspendObserver;
|
11955
11957
|
_emberMetalCore["default"]._suspendObservers = _emberMetalObserver._suspendObservers;
|
11956
|
-
_emberMetalCore["default"].beforeObserversFor = _emberMetalCore["default"].deprecateFunc("Ember.beforeObserversFor is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalObserver._beforeObserversFor);
|
11957
|
-
_emberMetalCore["default"].removeBeforeObserver = _emberMetalCore["default"].deprecateFunc("Ember.removeBeforeObserver is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalObserver._removeBeforeObserver);
|
11958
11958
|
|
11959
11959
|
_emberMetalCore["default"].IS_BINDING = _emberMetalMixin.IS_BINDING;
|
11960
11960
|
_emberMetalCore["default"].required = _emberMetalMixin.required;
|
11961
11961
|
_emberMetalCore["default"].aliasMethod = _emberMetalMixin.aliasMethod;
|
11962
11962
|
_emberMetalCore["default"].observer = _emberMetalMixin.observer;
|
11963
11963
|
_emberMetalCore["default"].immediateObserver = _emberMetalMixin._immediateObserver;
|
11964
|
-
_emberMetalCore["default"].beforeObserver = _emberMetalCore["default"].deprecateFunc("Ember.beforeObserver is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalMixin._beforeObserver);
|
11965
11964
|
_emberMetalCore["default"].mixin = _emberMetalMixin.mixin;
|
11966
11965
|
_emberMetalCore["default"].Mixin = _emberMetalMixin.Mixin;
|
11967
11966
|
|
@@ -12019,6 +12018,7 @@ enifed("ember-metal", ["exports", "ember-metal/core", "ember-metal/merge", "embe
|
|
12019
12018
|
|
12020
12019
|
// do this for side-effects of updating Ember.assert, warn, etc when
|
12021
12020
|
// ember-debug is present
|
12021
|
+
// This needs to be called before any deprecateFunc
|
12022
12022
|
if (_emberMetalCore["default"].__loader.registry["ember-debug"]) {
|
12023
12023
|
requireModule("ember-debug");
|
12024
12024
|
}
|
@@ -12026,6 +12026,11 @@ enifed("ember-metal", ["exports", "ember-metal/core", "ember-metal/merge", "embe
|
|
12026
12026
|
_emberMetalCore["default"].create = _emberMetalCore["default"].deprecateFunc("Ember.create is deprecated in favor of Object.create", _emberMetalPlatformCreate["default"]);
|
12027
12027
|
_emberMetalCore["default"].keys = _emberMetalCore["default"].deprecateFunc("Ember.keys is deprecated in favor of Object.keys", _emberMetalKeys["default"]);
|
12028
12028
|
|
12029
|
+
_emberMetalCore["default"].addBeforeObserver = _emberMetalCore["default"].deprecateFunc("Ember.addBeforeObserver is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalObserver._addBeforeObserver);
|
12030
|
+
_emberMetalCore["default"].removeBeforeObserver = _emberMetalCore["default"].deprecateFunc("Ember.removeBeforeObserver is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalObserver._removeBeforeObserver);
|
12031
|
+
_emberMetalCore["default"].beforeObserversFor = _emberMetalCore["default"].deprecateFunc("Ember.beforeObserversFor is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalObserver._beforeObserversFor);
|
12032
|
+
_emberMetalCore["default"].beforeObserver = _emberMetalCore["default"].deprecateFunc("Ember.beforeObserver is deprecated and will be removed in the near future.", { url: "http://emberjs.com/deprecations/v1.x/#toc_beforeobserver" }, _emberMetalMixin._beforeObserver);
|
12033
|
+
|
12029
12034
|
exports["default"] = _emberMetalCore["default"];
|
12030
12035
|
});
|
12031
12036
|
/**
|
@@ -12553,6 +12558,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
12553
12558
|
binding `oneWay`. You can instead pass `false` to disable `oneWay`, making the
|
12554
12559
|
binding two way again.
|
12555
12560
|
@return {Ember.Binding} `this`
|
12561
|
+
@deprecated
|
12556
12562
|
@public
|
12557
12563
|
*/
|
12558
12564
|
oneWay: function (from, flag) {
|
@@ -14621,7 +14627,7 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
14621
14627
|
|
14622
14628
|
@class Ember
|
14623
14629
|
@static
|
14624
|
-
@version 1.13.
|
14630
|
+
@version 1.13.5
|
14625
14631
|
@public
|
14626
14632
|
*/
|
14627
14633
|
|
@@ -14653,11 +14659,11 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
14653
14659
|
|
14654
14660
|
@property VERSION
|
14655
14661
|
@type String
|
14656
|
-
@default '1.13.
|
14662
|
+
@default '1.13.5'
|
14657
14663
|
@static
|
14658
14664
|
@public
|
14659
14665
|
*/
|
14660
|
-
Ember.VERSION = '1.13.
|
14666
|
+
Ember.VERSION = '1.13.5';
|
14661
14667
|
|
14662
14668
|
/**
|
14663
14669
|
The hash of environment variables used to control various configuration
|
@@ -14840,8 +14846,12 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
14840
14846
|
Ember.deprecate = K;
|
14841
14847
|
}
|
14842
14848
|
if ('undefined' === typeof Ember.deprecateFunc) {
|
14843
|
-
Ember.deprecateFunc = function (
|
14844
|
-
|
14849
|
+
Ember.deprecateFunc = function () {
|
14850
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
14851
|
+
args[_key] = arguments[_key];
|
14852
|
+
}
|
14853
|
+
|
14854
|
+
return args[args.length - 1];
|
14845
14855
|
};
|
14846
14856
|
}
|
14847
14857
|
|
@@ -15927,7 +15937,7 @@ enifed("ember-metal/get_properties", ["exports", "ember-metal/property_get", "em
|
|
15927
15937
|
@param {Object} obj
|
15928
15938
|
@param {String...|Array} list of keys to get
|
15929
15939
|
@return {Object}
|
15930
|
-
@
|
15940
|
+
@public
|
15931
15941
|
*/
|
15932
15942
|
|
15933
15943
|
function getProperties(obj) {
|
@@ -18089,6 +18099,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
18089
18099
|
|
18090
18100
|
if (typeof func !== "function") {
|
18091
18101
|
// revert to old, soft-deprecated argument ordering
|
18102
|
+
_emberMetalCore["default"].deprecate("Passing the dependentKeys after the callback function in Ember.observer is deprecated. Ensure the callback function is the last argument.");
|
18092
18103
|
|
18093
18104
|
func = args[0];
|
18094
18105
|
_paths = args.slice(1);
|
@@ -19296,12 +19307,14 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
19296
19307
|
*/
|
19297
19308
|
|
19298
19309
|
function get(obj, keyName) {
|
19310
|
+
_emberMetalCore["default"].deprecate("Get must be called with two arguments; an object and a property key", arguments.length === 2);
|
19299
19311
|
// Helpers that operate with 'this' within an #each
|
19300
19312
|
if (keyName === "") {
|
19301
19313
|
return obj;
|
19302
19314
|
}
|
19303
19315
|
|
19304
19316
|
if (!keyName && "string" === typeof obj) {
|
19317
|
+
_emberMetalCore["default"].deprecate("Calling Ember.get with only a property key has been deprecated, please also specify a target object.");
|
19305
19318
|
keyName = obj;
|
19306
19319
|
obj = _emberMetalCore["default"].lookup;
|
19307
19320
|
}
|
@@ -19310,6 +19323,7 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
19310
19323
|
_emberMetalCore["default"].assert("Cannot call get with '" + keyName + "' on an undefined object.", obj !== undefined);
|
19311
19324
|
|
19312
19325
|
if (_emberMetalIs_none["default"](obj)) {
|
19326
|
+
_emberMetalCore["default"].deprecate("Calling Ember.get without a target object has been deprecated, please specify a target object.");
|
19313
19327
|
return _getPath(obj, keyName);
|
19314
19328
|
}
|
19315
19329
|
|
@@ -19402,6 +19416,8 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
19402
19416
|
// detect complicated paths and normalize them
|
19403
19417
|
hasThis = _emberMetalPath_cache.hasThis(path);
|
19404
19418
|
|
19419
|
+
_emberMetalCore["default"].deprecate("Ember.get with 'this' in the path has been deprecated. Please use the same path without 'this'.", !hasThis);
|
19420
|
+
|
19405
19421
|
if (!root || hasThis) {
|
19406
19422
|
tuple = normalizeTuple(root, path);
|
19407
19423
|
root = tuple[0];
|
@@ -19412,7 +19428,7 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
19412
19428
|
parts = path.split(".");
|
19413
19429
|
len = parts.length;
|
19414
19430
|
for (idx = 0; root != null && idx < len; idx++) {
|
19415
|
-
root = get(root, parts[idx]
|
19431
|
+
root = get(root, parts[idx]);
|
19416
19432
|
if (root && root.isDestroyed) {
|
19417
19433
|
return undefined;
|
19418
19434
|
}
|
@@ -19460,11 +19476,13 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
19460
19476
|
function set(obj, keyName, value, tolerant) {
|
19461
19477
|
if (typeof obj === "string") {
|
19462
19478
|
_emberMetalCore["default"].assert("Path '" + obj + "' must be global if no obj is given.", _emberMetalPath_cache.isGlobalPath(obj));
|
19479
|
+
_emberMetalCore["default"].deprecate("Calling Ember.set with only a property key and a value has been deprecated, please also specify a target object.");
|
19463
19480
|
value = keyName;
|
19464
19481
|
keyName = obj;
|
19465
19482
|
obj = _emberMetalCore["default"].lookup;
|
19466
19483
|
}
|
19467
19484
|
|
19485
|
+
_emberMetalCore["default"].deprecate("Set must be called with tree or four arguments; an object, a property key, a value and tolerant true/false", arguments.length === 3 || arguments.length === 4);
|
19468
19486
|
_emberMetalCore["default"].assert("Cannot call set with '" + keyName + "' key.", !!keyName);
|
19469
19487
|
|
19470
19488
|
if (obj === _emberMetalCore["default"].lookup) {
|
@@ -19490,6 +19508,7 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
19490
19508
|
|
19491
19509
|
var isUnknown, currentValue;
|
19492
19510
|
if ((!obj || desc === undefined) && _emberMetalPath_cache.isPath(keyName)) {
|
19511
|
+
_emberMetalCore["default"].deprecate("Calling Ember.set without a target object has been deprecated, please specify a target object.", !!obj);
|
19493
19512
|
return setPath(obj, keyName, value, tolerant);
|
19494
19513
|
}
|
19495
19514
|
|
@@ -19558,6 +19577,8 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
19558
19577
|
// get the root
|
19559
19578
|
if (path !== "this") {
|
19560
19579
|
root = _emberMetalProperty_get._getPath(root, path);
|
19580
|
+
} else {
|
19581
|
+
_emberMetalCore["default"].deprecate("Ember.set with 'this' in the path has been deprecated. Please use the same path without 'this'.");
|
19561
19582
|
}
|
19562
19583
|
|
19563
19584
|
if (!keyName || keyName.length === 0) {
|
@@ -23389,7 +23410,9 @@ enifed("ember-routing-htmlbars/keywords/render", ["exports", "ember-metal/core",
|
|
23389
23410
|
}
|
23390
23411
|
|
23391
23412
|
// # legacy namespace
|
23413
|
+
var originalName = name;
|
23392
23414
|
name = name.replace(/\//g, ".");
|
23415
|
+
_emberMetalCore["default"].deprecate("Using a slash for namespacing with the {{render}} render helper has been deprecated.\n Please replace \"" + originalName + "\" with \"" + name + "\" in your call to the {{render}} helper.", !originalName.match(/\//g));
|
23393
23416
|
// \ legacy slash as namespace support
|
23394
23417
|
|
23395
23418
|
var templateName = "template:" + name;
|
@@ -23559,7 +23582,7 @@ enifed("ember-routing-views", ["exports", "ember-metal/core", "ember-routing-vie
|
|
23559
23582
|
@submodule ember-routing-views
|
23560
23583
|
*/
|
23561
23584
|
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) {
|
23562
|
-
_emberHtmlbarsTemplatesLinkTo["default"].meta.revision = "Ember@1.13.
|
23585
|
+
_emberHtmlbarsTemplatesLinkTo["default"].meta.revision = "Ember@1.13.5";
|
23563
23586
|
|
23564
23587
|
var linkComponentClassNameBindings = ["active", "loading", "disabled"];
|
23565
23588
|
|
@@ -24090,7 +24113,7 @@ enifed("ember-routing-views/views/link", ["exports", "ember-metal/core", "ember-
|
|
24090
24113
|
|
24091
24114
|
// FEATURES, Logger, assert
|
24092
24115
|
enifed("ember-routing-views/views/outlet", ["exports", "ember-views/views/view", "ember-htmlbars/templates/top-level-view"], function (exports, _emberViewsViewsView, _emberHtmlbarsTemplatesTopLevelView) {
|
24093
|
-
_emberHtmlbarsTemplatesTopLevelView["default"].meta.revision = "Ember@1.13.
|
24116
|
+
_emberHtmlbarsTemplatesTopLevelView["default"].meta.revision = "Ember@1.13.5";
|
24094
24117
|
|
24095
24118
|
var CoreOutletView = _emberViewsViewsView["default"].extend({
|
24096
24119
|
defaultTemplate: _emberHtmlbarsTemplatesTopLevelView["default"],
|
@@ -31800,6 +31823,20 @@ enifed('ember-runtime/ext/function', ['exports', 'ember-metal/core', 'ember-meta
|
|
31800
31823
|
*/
|
31801
31824
|
FunctionPrototype.observesImmediately = _emberMetalCore["default"].deprecateFunc('Function#observesImmediately is deprecated. Use Function#observes instead', FunctionPrototype._observesImmediately);
|
31802
31825
|
|
31826
|
+
FunctionPrototype._observesBefore = function () {
|
31827
|
+
var watched = [];
|
31828
|
+
var addWatchedProperty = function (obs) {
|
31829
|
+
watched.push(obs);
|
31830
|
+
};
|
31831
|
+
|
31832
|
+
for (var i = 0, l = arguments.length; i < l; ++i) {
|
31833
|
+
_emberMetalExpand_properties["default"](arguments[i], addWatchedProperty);
|
31834
|
+
}
|
31835
|
+
|
31836
|
+
this.__ember_observesBefore__ = watched;
|
31837
|
+
|
31838
|
+
return this;
|
31839
|
+
};
|
31803
31840
|
/**
|
31804
31841
|
The `observesBefore` extension of Javascript's Function prototype is
|
31805
31842
|
available when `Ember.EXTEND_PROTOTYPES` or
|
@@ -31819,20 +31856,7 @@ enifed('ember-runtime/ext/function', ['exports', 'ember-metal/core', 'ember-meta
|
|
31819
31856
|
@for Function
|
31820
31857
|
@private
|
31821
31858
|
*/
|
31822
|
-
FunctionPrototype.observesBefore =
|
31823
|
-
var watched = [];
|
31824
|
-
var addWatchedProperty = function (obs) {
|
31825
|
-
watched.push(obs);
|
31826
|
-
};
|
31827
|
-
|
31828
|
-
for (var i = 0, l = arguments.length; i < l; ++i) {
|
31829
|
-
_emberMetalExpand_properties["default"](arguments[i], addWatchedProperty);
|
31830
|
-
}
|
31831
|
-
|
31832
|
-
this.__ember_observesBefore__ = watched;
|
31833
|
-
|
31834
|
-
return this;
|
31835
|
-
};
|
31859
|
+
FunctionPrototype.observesBefore = _emberMetalCore["default"].deprecateFunc('Function#observesBefore is deprecated and will be removed in the near future.', { url: 'http://emberjs.com/deprecations/v1.x/#toc_beforeobserver' }, FunctionPrototype._observesBefore);
|
31836
31860
|
|
31837
31861
|
/**
|
31838
31862
|
The `on` extension of Javascript's Function prototype is available
|
@@ -33040,7 +33064,7 @@ enifed('ember-runtime/mixins/controller_content_model_alias_deprecation', ['expo
|
|
33040
33064
|
});
|
33041
33065
|
});
|
33042
33066
|
// Ember.deprecate
|
33043
|
-
enifed(
|
33067
|
+
enifed('ember-runtime/mixins/copyable', ['exports', 'ember-metal/core', 'ember-metal/property_get', 'ember-metal/mixin', 'ember-runtime/mixins/freezable', 'ember-runtime/system/string', 'ember-metal/error'], function (exports, _emberMetalCore, _emberMetalProperty_get, _emberMetalMixin, _emberRuntimeMixinsFreezable, _emberRuntimeSystemString, _emberMetalError) {
|
33044
33068
|
|
33045
33069
|
/**
|
33046
33070
|
Implements some standard methods for copying an object. Add this mixin to
|
@@ -33080,13 +33104,15 @@ enifed("ember-runtime/mixins/copyable", ["exports", "ember-metal/property_get",
|
|
33080
33104
|
consuming more memory.
|
33081
33105
|
@method frozenCopy
|
33082
33106
|
@return {Object} copy of receiver or receiver
|
33107
|
+
@deprecated Use `Object.freeze` instead.
|
33083
33108
|
@private
|
33084
33109
|
*/
|
33085
33110
|
frozenCopy: function () {
|
33111
|
+
_emberMetalCore["default"].deprecate('`frozenCopy` is deprecated, use Object.freeze instead.');
|
33086
33112
|
if (_emberRuntimeMixinsFreezable.Freezable && _emberRuntimeMixinsFreezable.Freezable.detect(this)) {
|
33087
|
-
return _emberMetalProperty_get.get(this,
|
33113
|
+
return _emberMetalProperty_get.get(this, 'isFrozen') ? this : this.copy().freeze();
|
33088
33114
|
} else {
|
33089
|
-
throw new _emberMetalError["default"](_emberRuntimeSystemString.fmt(
|
33115
|
+
throw new _emberMetalError["default"](_emberRuntimeSystemString.fmt('%@ does not support freezing', [this]));
|
33090
33116
|
}
|
33091
33117
|
}
|
33092
33118
|
});
|
@@ -33192,6 +33218,13 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33192
33218
|
return i;
|
33193
33219
|
}
|
33194
33220
|
|
33221
|
+
function deprecatingAliasMethod(oldName, newName) {
|
33222
|
+
return function () {
|
33223
|
+
_emberMetalCore["default"].deprecate('Ember.Enumerable.' + oldName + ' is deprecated. Use ' + newName + ' instead.');
|
33224
|
+
return this[newName].apply(this, arguments);
|
33225
|
+
};
|
33226
|
+
}
|
33227
|
+
|
33195
33228
|
/**
|
33196
33229
|
This mixin defines the common interface implemented by enumerable objects
|
33197
33230
|
in Ember. Most of these methods follow the standard Array iteration
|
@@ -33479,8 +33512,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33479
33512
|
@deprecated Use `mapBy` instead
|
33480
33513
|
@private
|
33481
33514
|
*/
|
33482
|
-
|
33483
|
-
mapProperty: _emberMetalMixin.aliasMethod('mapBy'),
|
33515
|
+
mapProperty: deprecatingAliasMethod('mapProperty', 'mapBy'),
|
33484
33516
|
|
33485
33517
|
/**
|
33486
33518
|
Returns an array with all of the items in the enumeration that the passed
|
@@ -33569,7 +33601,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33569
33601
|
@deprecated Use `filterBy` instead
|
33570
33602
|
@private
|
33571
33603
|
*/
|
33572
|
-
filterProperty:
|
33604
|
+
filterProperty: deprecatingAliasMethod('filterProperty', 'filterBy'),
|
33573
33605
|
|
33574
33606
|
/**
|
33575
33607
|
Returns an array with the items that do not have truthy values for
|
@@ -33606,7 +33638,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33606
33638
|
@deprecated Use `rejectBy` instead
|
33607
33639
|
@private
|
33608
33640
|
*/
|
33609
|
-
rejectProperty:
|
33641
|
+
rejectProperty: deprecatingAliasMethod('rejectProperty', 'rejectBy'),
|
33610
33642
|
|
33611
33643
|
/**
|
33612
33644
|
Returns the first item in the array for which the callback returns true.
|
@@ -33686,7 +33718,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33686
33718
|
@deprecated Use `findBy` instead
|
33687
33719
|
@private
|
33688
33720
|
*/
|
33689
|
-
findProperty:
|
33721
|
+
findProperty: deprecatingAliasMethod('findProperty', 'findBy'),
|
33690
33722
|
|
33691
33723
|
/**
|
33692
33724
|
Returns `true` if the passed function returns true for every item in the
|
@@ -33729,7 +33761,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33729
33761
|
@return {Boolean}
|
33730
33762
|
@public
|
33731
33763
|
*/
|
33732
|
-
everyBy:
|
33764
|
+
everyBy: deprecatingAliasMethod('everyBy', 'isEvery'),
|
33733
33765
|
|
33734
33766
|
/**
|
33735
33767
|
@method everyProperty
|
@@ -33739,7 +33771,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33739
33771
|
@return {Boolean}
|
33740
33772
|
@private
|
33741
33773
|
*/
|
33742
|
-
everyProperty:
|
33774
|
+
everyProperty: deprecatingAliasMethod('everyProperty', 'isEvery'),
|
33743
33775
|
|
33744
33776
|
/**
|
33745
33777
|
Returns `true` if the passed property resolves to the value of the second
|
@@ -33835,7 +33867,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33835
33867
|
@deprecated Use `any` instead
|
33836
33868
|
@private
|
33837
33869
|
*/
|
33838
|
-
some:
|
33870
|
+
some: deprecatingAliasMethod('some', 'any'),
|
33839
33871
|
|
33840
33872
|
/**
|
33841
33873
|
Returns `true` if the passed property resolves to the value of the second
|
@@ -33860,7 +33892,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33860
33892
|
@deprecated Use `isAny` instead
|
33861
33893
|
@private
|
33862
33894
|
*/
|
33863
|
-
anyBy:
|
33895
|
+
anyBy: deprecatingAliasMethod('anyBy', 'isAny'),
|
33864
33896
|
|
33865
33897
|
/**
|
33866
33898
|
@method someProperty
|
@@ -33870,7 +33902,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-metal/core', 'ember
|
|
33870
33902
|
@deprecated Use `isAny` instead
|
33871
33903
|
@private
|
33872
33904
|
*/
|
33873
|
-
someProperty:
|
33905
|
+
someProperty: deprecatingAliasMethod('someProperty', 'isAny'),
|
33874
33906
|
|
33875
33907
|
/**
|
33876
33908
|
This will combine the values of the enumerator into a single value. It
|
@@ -34400,7 +34432,7 @@ enifed("ember-runtime/mixins/evented", ["exports", "ember-metal/mixin", "ember-m
|
|
34400
34432
|
}
|
34401
34433
|
});
|
34402
34434
|
});
|
34403
|
-
enifed(
|
34435
|
+
enifed('ember-runtime/mixins/freezable', ['exports', 'ember-metal/core', 'ember-metal/mixin', 'ember-metal/property_get', 'ember-metal/property_set'], function (exports, _emberMetalCore, _emberMetalMixin, _emberMetalProperty_get, _emberMetalProperty_set) {
|
34404
34436
|
|
34405
34437
|
/**
|
34406
34438
|
The `Ember.Freezable` mixin implements some basic methods for marking an
|
@@ -34457,10 +34489,16 @@ enifed("ember-runtime/mixins/freezable", ["exports", "ember-metal/mixin", "ember
|
|
34457
34489
|
@class Freezable
|
34458
34490
|
@namespace Ember
|
34459
34491
|
@since Ember 0.9
|
34492
|
+
@deprecated Use `Object.freeze` instead.
|
34460
34493
|
@private
|
34461
34494
|
*/
|
34462
34495
|
var Freezable = _emberMetalMixin.Mixin.create({
|
34463
34496
|
|
34497
|
+
init: function () {
|
34498
|
+
_emberMetalCore["default"].deprecate('`Ember.Freezable` is deprecated, use `Object.freeze` instead.');
|
34499
|
+
this._super.apply(this, arguments);
|
34500
|
+
},
|
34501
|
+
|
34464
34502
|
/**
|
34465
34503
|
Set to `true` when the object is frozen. Use this property to detect
|
34466
34504
|
whether your object is frozen or not.
|
@@ -34478,18 +34516,18 @@ enifed("ember-runtime/mixins/freezable", ["exports", "ember-metal/mixin", "ember
|
|
34478
34516
|
@private
|
34479
34517
|
*/
|
34480
34518
|
freeze: function () {
|
34481
|
-
if (_emberMetalProperty_get.get(this,
|
34519
|
+
if (_emberMetalProperty_get.get(this, 'isFrozen')) {
|
34482
34520
|
return this;
|
34483
34521
|
}
|
34484
34522
|
|
34485
|
-
_emberMetalProperty_set.set(this,
|
34523
|
+
_emberMetalProperty_set.set(this, 'isFrozen', true);
|
34486
34524
|
return this;
|
34487
34525
|
}
|
34488
34526
|
|
34489
34527
|
});
|
34490
34528
|
|
34491
34529
|
exports.Freezable = Freezable;
|
34492
|
-
var FROZEN_ERROR =
|
34530
|
+
var FROZEN_ERROR = 'Frozen object cannot be modified.';
|
34493
34531
|
exports.FROZEN_ERROR = FROZEN_ERROR;
|
34494
34532
|
});
|
34495
34533
|
/**
|
@@ -37872,8 +37910,7 @@ enifed("ember-runtime/system/native_array", ["exports", "ember-metal/core", "emb
|
|
37872
37910
|
}
|
37873
37911
|
});
|
37874
37912
|
|
37875
|
-
exports.NativeArray
|
37876
|
-
= NativeArray = NativeArray.without.apply(NativeArray, ignore);
|
37913
|
+
exports.NativeArray = NativeArray = NativeArray.without.apply(NativeArray, ignore);
|
37877
37914
|
|
37878
37915
|
/**
|
37879
37916
|
Creates an `Ember.NativeArray` from an Array like object.
|
@@ -37945,7 +37982,8 @@ enifed("ember-runtime/system/native_array", ["exports", "ember-metal/core", "emb
|
|
37945
37982
|
|
37946
37983
|
_emberMetalCore["default"].A = A; // ES6TODO: Setting A onto the object returned by ember-metal/core to avoid circles
|
37947
37984
|
exports.A = A;
|
37948
|
-
exports.NativeArray = NativeArray
|
37985
|
+
exports.NativeArray = NativeArray // TODO: only use default export
|
37986
|
+
;
|
37949
37987
|
exports["default"] = NativeArray;
|
37950
37988
|
});
|
37951
37989
|
/**
|
@@ -40817,7 +40855,7 @@ enifed("ember-template-compiler/system/compile_options", ["exports", "ember-meta
|
|
40817
40855
|
|
40818
40856
|
options.buildMeta = function buildMeta(program) {
|
40819
40857
|
return {
|
40820
|
-
revision: "Ember@1.13.
|
40858
|
+
revision: "Ember@1.13.5",
|
40821
40859
|
loc: program.loc,
|
40822
40860
|
moduleName: options.moduleName
|
40823
40861
|
};
|
@@ -41353,7 +41391,7 @@ enifed("ember-testing/helpers", ["exports", "ember-metal/core", "ember-metal/pro
|
|
41353
41391
|
the DOM
|
41354
41392
|
@return {Object} jQuery object representing the results of the query
|
41355
41393
|
@throws {Error} throws error if jQuery object returned has a length of 0
|
41356
|
-
@
|
41394
|
+
@public
|
41357
41395
|
*/
|
41358
41396
|
helper("findWithAssert", findWithAssert);
|
41359
41397
|
|
@@ -43058,7 +43096,7 @@ enifed("ember-views/mixins/class_names_support", ["exports", "ember-metal/core",
|
|
43058
43096
|
```javascript
|
43059
43097
|
// Applies the 'high' class to the view element
|
43060
43098
|
Ember.View.extend({
|
43061
|
-
classNameBindings: ['priority']
|
43099
|
+
classNameBindings: ['priority'],
|
43062
43100
|
priority: 'high'
|
43063
43101
|
});
|
43064
43102
|
```
|
@@ -43067,7 +43105,7 @@ enifed("ember-views/mixins/class_names_support", ["exports", "ember-metal/core",
|
|
43067
43105
|
```javascript
|
43068
43106
|
// Applies the 'is-urgent' class to the view element
|
43069
43107
|
Ember.View.extend({
|
43070
|
-
classNameBindings: ['isUrgent']
|
43108
|
+
classNameBindings: ['isUrgent'],
|
43071
43109
|
isUrgent: true
|
43072
43110
|
});
|
43073
43111
|
```
|
@@ -43076,7 +43114,7 @@ enifed("ember-views/mixins/class_names_support", ["exports", "ember-metal/core",
|
|
43076
43114
|
```javascript
|
43077
43115
|
// Applies the 'urgent' class to the view element
|
43078
43116
|
Ember.View.extend({
|
43079
|
-
classNameBindings: ['isUrgent:urgent']
|
43117
|
+
classNameBindings: ['isUrgent:urgent'],
|
43080
43118
|
isUrgent: true
|
43081
43119
|
});
|
43082
43120
|
```
|
@@ -45968,7 +46006,7 @@ enifed("ember-views/views/component", ["exports", "ember-metal/core", "ember-vie
|
|
45968
46006
|
});
|
45969
46007
|
// Ember.assert, Ember.Handlebars
|
45970
46008
|
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) {
|
45971
|
-
_emberHtmlbarsTemplatesContainerView["default"].meta.revision = "Ember@1.13.
|
46009
|
+
_emberHtmlbarsTemplatesContainerView["default"].meta.revision = "Ember@1.13.5";
|
45972
46010
|
|
45973
46011
|
/**
|
45974
46012
|
@module ember
|