ember-source 1.9.0.beta.3 → 1.9.0.beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-runtime.js +39 -40
- data/dist/ember-testing.js +2 -2
- data/dist/ember-tests.js +44 -13
- data/dist/ember-tests.prod.js +44 -13
- data/dist/ember.js +79 -64
- data/dist/ember.min.js +5 -5
- data/dist/ember.prod.js +64 -60
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee42423d4ee76d64f5f163acd3821e8c48a6639e
|
4
|
+
data.tar.gz: 418d9e6706cf0db86ce327632ed7ab305fae5638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24a75999742dfbf9374d13a1e3a36fc50235f74ce229c7a162e314728d3362d948d2c9dd9983ff556b07f0b5c3aad4f32f2417b3d1faa9076e6bf1a03c4523de
|
7
|
+
data.tar.gz: bc92ce0176001654c7b96f5dd3a8b8adb29dcff7069366fb915c4d64d53ab9b49c3bcb07136d405f56c655be7d8177ab5007b048f8ba713c9926e05b826f9889
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.0-beta.
|
1
|
+
1.9.0-beta.4
|
data/dist/ember-runtime.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.9.0-beta.
|
8
|
+
* @version 1.9.0-beta.4
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -4803,7 +4803,7 @@ define("ember-metal/core",
|
|
4803
4803
|
|
4804
4804
|
@class Ember
|
4805
4805
|
@static
|
4806
|
-
@version 1.9.0-beta.
|
4806
|
+
@version 1.9.0-beta.4
|
4807
4807
|
*/
|
4808
4808
|
|
4809
4809
|
if ('undefined' === typeof Ember) {
|
@@ -4830,10 +4830,10 @@ define("ember-metal/core",
|
|
4830
4830
|
/**
|
4831
4831
|
@property VERSION
|
4832
4832
|
@type String
|
4833
|
-
@default '1.9.0-beta.
|
4833
|
+
@default '1.9.0-beta.4'
|
4834
4834
|
@static
|
4835
4835
|
*/
|
4836
|
-
Ember.VERSION = '1.9.0-beta.
|
4836
|
+
Ember.VERSION = '1.9.0-beta.4';
|
4837
4837
|
|
4838
4838
|
/**
|
4839
4839
|
Standard environmental variables. You can define these in a global `EmberENV`
|
@@ -5557,7 +5557,7 @@ define("ember-metal/events",
|
|
5557
5557
|
@for Ember
|
5558
5558
|
@param obj
|
5559
5559
|
@param {String} eventName
|
5560
|
-
@param {Object|Function}
|
5560
|
+
@param {Object|Function} target A target object or a function
|
5561
5561
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
5562
5562
|
@param {Boolean} once A flag whether a function should only be called once
|
5563
5563
|
*/
|
@@ -5593,7 +5593,7 @@ define("ember-metal/events",
|
|
5593
5593
|
@for Ember
|
5594
5594
|
@param obj
|
5595
5595
|
@param {String} eventName
|
5596
|
-
@param {Object|Function}
|
5596
|
+
@param {Object|Function} target A target object or a function
|
5597
5597
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
5598
5598
|
*/
|
5599
5599
|
function removeListener(obj, eventName, target, method) {
|
@@ -5645,7 +5645,7 @@ define("ember-metal/events",
|
|
5645
5645
|
@private
|
5646
5646
|
@param obj
|
5647
5647
|
@param {String} eventName
|
5648
|
-
@param {Object|Function}
|
5648
|
+
@param {Object|Function} target A target object or a function
|
5649
5649
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
5650
5650
|
@param {Function} callback
|
5651
5651
|
*/
|
@@ -5676,8 +5676,8 @@ define("ember-metal/events",
|
|
5676
5676
|
|
5677
5677
|
@private
|
5678
5678
|
@param obj
|
5679
|
-
@param {Array}
|
5680
|
-
@param {Object|Function}
|
5679
|
+
@param {Array} eventNames Array of event names
|
5680
|
+
@param {Object|Function} target A target object or a function
|
5681
5681
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
5682
5682
|
@param {Function} callback
|
5683
5683
|
*/
|
@@ -6330,6 +6330,7 @@ define("ember-metal/is_empty",
|
|
6330
6330
|
Ember.isEmpty(undefined); // true
|
6331
6331
|
Ember.isEmpty(''); // true
|
6332
6332
|
Ember.isEmpty([]); // true
|
6333
|
+
Ember.isEmpty({}); // false
|
6333
6334
|
Ember.isEmpty('Adam Hawkins'); // false
|
6334
6335
|
Ember.isEmpty([0,1,2]); // false
|
6335
6336
|
```
|
@@ -7091,7 +7092,8 @@ define("ember-metal/map",
|
|
7091
7092
|
|
7092
7093
|
/**
|
7093
7094
|
Iterate over all the keys and values. Calls the function once
|
7094
|
-
for each key, passing in
|
7095
|
+
for each key, passing in value, key, and the map being iterated over,
|
7096
|
+
in that order.
|
7095
7097
|
|
7096
7098
|
The keys are guaranteed to be iterated over in insertion order.
|
7097
7099
|
|
@@ -7114,11 +7116,11 @@ define("ember-metal/map",
|
|
7114
7116
|
if (length === 2) {
|
7115
7117
|
thisArg = arguments[1];
|
7116
7118
|
cb = function(key) {
|
7117
|
-
callback.call(thisArg, map.get(key), key);
|
7119
|
+
callback.call(thisArg, map.get(key), key, map);
|
7118
7120
|
};
|
7119
7121
|
} else {
|
7120
7122
|
cb = function(key) {
|
7121
|
-
callback(map.get(key), key);
|
7123
|
+
callback(map.get(key), key, map);
|
7122
7124
|
};
|
7123
7125
|
}
|
7124
7126
|
|
@@ -8214,12 +8216,12 @@ define("ember-metal/observer",
|
|
8214
8216
|
@for Ember
|
8215
8217
|
@param obj
|
8216
8218
|
@param {String} path
|
8217
|
-
@param {Object|Function}
|
8219
|
+
@param {Object|Function} target
|
8218
8220
|
@param {Function|String} [method]
|
8219
8221
|
*/
|
8220
|
-
function removeObserver(obj,
|
8221
|
-
unwatch(obj,
|
8222
|
-
removeListener(obj, changeEvent(
|
8222
|
+
function removeObserver(obj, path, target, method) {
|
8223
|
+
unwatch(obj, path);
|
8224
|
+
removeListener(obj, changeEvent(path), target, method);
|
8223
8225
|
|
8224
8226
|
return this;
|
8225
8227
|
}
|
@@ -8229,12 +8231,12 @@ define("ember-metal/observer",
|
|
8229
8231
|
@for Ember
|
8230
8232
|
@param obj
|
8231
8233
|
@param {String} path
|
8232
|
-
@param {Object|Function}
|
8234
|
+
@param {Object|Function} target
|
8233
8235
|
@param {Function|String} [method]
|
8234
8236
|
*/
|
8235
|
-
function addBeforeObserver(obj,
|
8236
|
-
addListener(obj, beforeEvent(
|
8237
|
-
watch(obj,
|
8237
|
+
function addBeforeObserver(obj, path, target, method) {
|
8238
|
+
addListener(obj, beforeEvent(path), target, method);
|
8239
|
+
watch(obj, path);
|
8238
8240
|
|
8239
8241
|
return this;
|
8240
8242
|
}
|
@@ -8270,12 +8272,12 @@ define("ember-metal/observer",
|
|
8270
8272
|
@for Ember
|
8271
8273
|
@param obj
|
8272
8274
|
@param {String} path
|
8273
|
-
@param {Object|Function}
|
8275
|
+
@param {Object|Function} target
|
8274
8276
|
@param {Function|String} [method]
|
8275
8277
|
*/
|
8276
|
-
function removeBeforeObserver(obj,
|
8277
|
-
unwatch(obj,
|
8278
|
-
removeListener(obj, beforeEvent(
|
8278
|
+
function removeBeforeObserver(obj, path, target, method) {
|
8279
|
+
unwatch(obj, path);
|
8280
|
+
removeListener(obj, beforeEvent(path), target, method);
|
8279
8281
|
|
8280
8282
|
return this;
|
8281
8283
|
}
|
@@ -10702,22 +10704,17 @@ define("ember-metal/utils",
|
|
10702
10704
|
this.cache = {};
|
10703
10705
|
this.cacheMeta = {};
|
10704
10706
|
this.source = obj;
|
10707
|
+
this.deps = undefined;
|
10708
|
+
this.listeners = undefined;
|
10709
|
+
this.mixins = undefined;
|
10710
|
+
this.bindings = undefined;
|
10711
|
+
this.chains = undefined;
|
10712
|
+
this.values = undefined;
|
10713
|
+
this.proto = undefined;
|
10705
10714
|
}
|
10706
10715
|
|
10707
10716
|
Meta.prototype = {
|
10708
|
-
|
10709
|
-
deps: null,
|
10710
|
-
watching: null,
|
10711
|
-
listeners: null,
|
10712
|
-
cache: null,
|
10713
|
-
cacheMeta: null,
|
10714
|
-
source: null,
|
10715
|
-
mixins: null,
|
10716
|
-
bindings: null,
|
10717
|
-
chains: null,
|
10718
|
-
chainWatchers: null,
|
10719
|
-
values: null,
|
10720
|
-
proto: null
|
10717
|
+
chainWatchers: null
|
10721
10718
|
};
|
10722
10719
|
|
10723
10720
|
if (!canDefineNonEnumerableProperties) {
|
@@ -14202,8 +14199,9 @@ define("ember-runtime/copy",
|
|
14202
14199
|
any type of object and create a clone of it, including primitive values
|
14203
14200
|
(which are not actually cloned because they are immutable).
|
14204
14201
|
|
14205
|
-
If the passed object implements the `
|
14206
|
-
will simply call that method and return the result.
|
14202
|
+
If the passed object implements the `copy()` method, then this function
|
14203
|
+
will simply call that method and return the result. Please see
|
14204
|
+
`Ember.Copyable` for further details.
|
14207
14205
|
|
14208
14206
|
@method copy
|
14209
14207
|
@for Ember
|
@@ -17665,7 +17663,7 @@ define("ember-runtime/mixins/mutable_array",
|
|
17665
17663
|
//
|
17666
17664
|
|
17667
17665
|
/**
|
17668
|
-
Remove all
|
17666
|
+
Remove all occurrences of an object in the array.
|
17669
17667
|
|
17670
17668
|
```javascript
|
17671
17669
|
var cities = ["Chicago", "Berlin", "Lima", "Chicago"];
|
@@ -21250,6 +21248,7 @@ define("ember-runtime/system/set",
|
|
21250
21248
|
@uses Ember.Copyable
|
21251
21249
|
@uses Ember.Freezable
|
21252
21250
|
@since Ember 0.9
|
21251
|
+
@deprecated
|
21253
21252
|
*/
|
21254
21253
|
__exports__["default"] = CoreObject.extend(MutableEnumerable, Copyable, Freezable, {
|
21255
21254
|
|
data/dist/ember-testing.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.9.0-beta.
|
8
|
+
* @version 1.9.0-beta.4
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -746,7 +746,7 @@ enifed("ember-testing/helpers",
|
|
746
746
|
Ember.Test.registerAsyncHelper('loginUser', function(app, username, password) {
|
747
747
|
visit('secured/path/here')
|
748
748
|
.fillIn('#username', username)
|
749
|
-
.fillIn('#password',
|
749
|
+
.fillIn('#password', password)
|
750
750
|
.click('.submit')
|
751
751
|
|
752
752
|
return app.testHelpers.wait();
|
data/dist/ember-tests.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.9.0-beta.
|
8
|
+
* @version 1.9.0-beta.4
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -18333,7 +18333,7 @@ enifed("ember-metal/tests/is_empty_test",
|
|
18333
18333
|
equal(false, isEmpty(0), "for 0");
|
18334
18334
|
equal(true, isEmpty([]), "for an empty Array");
|
18335
18335
|
equal(false, isEmpty({}), "for an empty Object");
|
18336
|
-
equal(true, isEmpty(object),
|
18336
|
+
equal(true, isEmpty(object), "for an Object that has zero 'length'");
|
18337
18337
|
});
|
18338
18338
|
|
18339
18339
|
test("Ember.isEmpty Ember.Map", function() {
|
@@ -18948,12 +18948,13 @@ enifed("ember-metal/tests/map_test",
|
|
18948
18948
|
{ value: 3, key: "c", context: unboundThis },
|
18949
18949
|
];
|
18950
18950
|
|
18951
|
-
map.forEach(function(value, key) {
|
18951
|
+
map.forEach(function(value, key, theMap) {
|
18952
18952
|
var expectation = expectations[iteration];
|
18953
18953
|
|
18954
18954
|
equal(value, expectation.value, 'value should be correct');
|
18955
18955
|
equal(key, expectation.key, 'key should be correct');
|
18956
18956
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
18957
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
18957
18958
|
|
18958
18959
|
iteration++;
|
18959
18960
|
});
|
@@ -18975,12 +18976,13 @@ enifed("ember-metal/tests/map_test",
|
|
18975
18976
|
{ value: 3, key: "c", context: context },
|
18976
18977
|
];
|
18977
18978
|
|
18978
|
-
map.forEach(function(value, key) {
|
18979
|
+
map.forEach(function(value, key, theMap) {
|
18979
18980
|
var expectation = expectations[iteration];
|
18980
18981
|
|
18981
18982
|
equal(value, expectation.value, 'value should be correct');
|
18982
18983
|
equal(key, expectation.key, 'key should be correct');
|
18983
18984
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
18985
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
18984
18986
|
|
18985
18987
|
iteration++;
|
18986
18988
|
|
@@ -19001,7 +19003,7 @@ enifed("ember-metal/tests/map_test",
|
|
19001
19003
|
{ value: 2, key: "b", context: unboundThis }
|
19002
19004
|
];
|
19003
19005
|
|
19004
|
-
map.forEach(function(value, key) {
|
19006
|
+
map.forEach(function(value, key, theMap) {
|
19005
19007
|
if (iteration === 0) {
|
19006
19008
|
map["delete"]("c");
|
19007
19009
|
}
|
@@ -19011,6 +19013,7 @@ enifed("ember-metal/tests/map_test",
|
|
19011
19013
|
equal(value, expectation.value, 'value should be correct');
|
19012
19014
|
equal(key, expectation.key, 'key should be correct');
|
19013
19015
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
19016
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
19014
19017
|
|
19015
19018
|
iteration++;
|
19016
19019
|
});
|
@@ -19032,7 +19035,7 @@ enifed("ember-metal/tests/map_test",
|
|
19032
19035
|
{ value: 4, key: "d", context: unboundThis },
|
19033
19036
|
];
|
19034
19037
|
|
19035
|
-
map.forEach(function(value, key) {
|
19038
|
+
map.forEach(function(value, key, theMap) {
|
19036
19039
|
if (iteration === 0) {
|
19037
19040
|
map.set('d', 4);
|
19038
19041
|
}
|
@@ -19042,6 +19045,7 @@ enifed("ember-metal/tests/map_test",
|
|
19042
19045
|
equal(value, expectation.value, 'value should be correct');
|
19043
19046
|
equal(key, expectation.key, 'key should be correct');
|
19044
19047
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
19048
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
19045
19049
|
|
19046
19050
|
iteration++;
|
19047
19051
|
});
|
@@ -25653,7 +25657,7 @@ enifed("ember-routing-handlebars/tests/helpers/outlet_test",
|
|
25653
25657
|
});
|
25654
25658
|
|
25655
25659
|
test("outlet should support an optional name", function() {
|
25656
|
-
var template = "<h1>HI</h1>{{outlet mainView}}";
|
25660
|
+
var template = "<h1>HI</h1>{{outlet 'mainView'}}";
|
25657
25661
|
view = EmberView.create({
|
25658
25662
|
template: EmberHandlebars.compile(template)
|
25659
25663
|
});
|
@@ -25873,6 +25877,33 @@ enifed("ember-routing-handlebars/tests/helpers/outlet_test",
|
|
25873
25877
|
// Replace whitespace for older IE
|
25874
25878
|
equal(trim(view.$().text()), 'HIBYE');
|
25875
25879
|
});
|
25880
|
+
|
25881
|
+
test("should not throw deprecations if {{outlet}} is used without a name", function() {
|
25882
|
+
expectNoDeprecation();
|
25883
|
+
view = EmberView.create({
|
25884
|
+
template: compile("{{outlet}}")
|
25885
|
+
});
|
25886
|
+
appendView(view);
|
25887
|
+
});
|
25888
|
+
|
25889
|
+
test("should not throw deprecations if {{outlet}} is used with a quoted name", function() {
|
25890
|
+
expectNoDeprecation();
|
25891
|
+
view = EmberView.create({
|
25892
|
+
template: compile("{{outlet \"foo\"}}"),
|
25893
|
+
});
|
25894
|
+
appendView(view);
|
25895
|
+
});
|
25896
|
+
|
25897
|
+
|
25898
|
+
test("should throw a deprecation if {{outlet}} is used with an unquoted name", function() {
|
25899
|
+
view = EmberView.create({
|
25900
|
+
template: compile("{{outlet foo}}")
|
25901
|
+
});
|
25902
|
+
expectDeprecation(function() {
|
25903
|
+
appendView(view);
|
25904
|
+
}, 'Using {{outlet}} with an unquoted name is not supported. Please update to quoted usage \'{{outlet "foo"}}\'.');
|
25905
|
+
});
|
25906
|
+
|
25876
25907
|
});
|
25877
25908
|
enifed("ember-routing-handlebars/tests/helpers/outlet_test.jshint",
|
25878
25909
|
[],
|
@@ -57016,7 +57047,7 @@ enifed("ember/tests/routing/basic_test",
|
|
57016
57047
|
"<div class='alert-box'>Invader!</div>"
|
57017
57048
|
);
|
57018
57049
|
Ember.TEMPLATES.the_real_home_template = Ember.Handlebars.compile(
|
57019
|
-
"<p>THIS IS THE REAL HOME</p>{{outlet alert}}"
|
57050
|
+
"<p>THIS IS THE REAL HOME</p>{{outlet 'alert'}}"
|
57020
57051
|
);
|
57021
57052
|
|
57022
57053
|
App.HomeController = Ember.Controller.extend();
|
@@ -58760,7 +58791,7 @@ enifed("ember/tests/routing/basic_test",
|
|
58760
58791
|
|
58761
58792
|
|
58762
58793
|
test("Only use route rendered into main outlet for default into property on child", function() {
|
58763
|
-
Ember.TEMPLATES.application = compile("{{outlet menu}}{{outlet}}");
|
58794
|
+
Ember.TEMPLATES.application = compile("{{outlet 'menu'}}{{outlet}}");
|
58764
58795
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
58765
58796
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex");
|
58766
58797
|
Ember.TEMPLATES['posts/menu'] = compile("postsMenu");
|
@@ -59071,7 +59102,7 @@ enifed("ember/tests/routing/basic_test",
|
|
59071
59102
|
});
|
59072
59103
|
|
59073
59104
|
test("Route should tear down multiple outlets", function() {
|
59074
|
-
Ember.TEMPLATES.application = compile("{{outlet menu}}{{outlet}}{{outlet footer}}");
|
59105
|
+
Ember.TEMPLATES.application = compile("{{outlet 'menu'}}{{outlet}}{{outlet 'footer'}}");
|
59075
59106
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
59076
59107
|
Ember.TEMPLATES.users = compile("users");
|
59077
59108
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex");
|
@@ -59134,7 +59165,7 @@ enifed("ember/tests/routing/basic_test",
|
|
59134
59165
|
|
59135
59166
|
|
59136
59167
|
test("Route supports clearing outlet explicitly", function() {
|
59137
|
-
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet modal}}");
|
59168
|
+
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet 'modal'}}");
|
59138
59169
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
59139
59170
|
Ember.TEMPLATES.users = compile("users");
|
59140
59171
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex {{outlet}}");
|
@@ -59217,7 +59248,7 @@ enifed("ember/tests/routing/basic_test",
|
|
59217
59248
|
});
|
59218
59249
|
|
59219
59250
|
test("Route supports clearing outlet using string parameter", function() {
|
59220
|
-
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet modal}}");
|
59251
|
+
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet 'modal'}}");
|
59221
59252
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
59222
59253
|
Ember.TEMPLATES.users = compile("users");
|
59223
59254
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex {{outlet}}");
|
@@ -59275,7 +59306,7 @@ enifed("ember/tests/routing/basic_test",
|
|
59275
59306
|
expect(1); // handleURL
|
59276
59307
|
|
59277
59308
|
Ember.TEMPLATES.application = compile("{{outlet}}");
|
59278
|
-
Ember.TEMPLATES.posts = compile("{{outlet modal}}");
|
59309
|
+
Ember.TEMPLATES.posts = compile("{{outlet 'modal'}}");
|
59279
59310
|
Ember.TEMPLATES.modal = compile("A Yo.");
|
59280
59311
|
|
59281
59312
|
Router.map(function() {
|
data/dist/ember-tests.prod.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.9.0-beta.
|
8
|
+
* @version 1.9.0-beta.4
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -18270,7 +18270,7 @@ enifed("ember-metal/tests/is_empty_test",
|
|
18270
18270
|
equal(false, isEmpty(0), "for 0");
|
18271
18271
|
equal(true, isEmpty([]), "for an empty Array");
|
18272
18272
|
equal(false, isEmpty({}), "for an empty Object");
|
18273
|
-
equal(true, isEmpty(object),
|
18273
|
+
equal(true, isEmpty(object), "for an Object that has zero 'length'");
|
18274
18274
|
});
|
18275
18275
|
|
18276
18276
|
test("Ember.isEmpty Ember.Map", function() {
|
@@ -18885,12 +18885,13 @@ enifed("ember-metal/tests/map_test",
|
|
18885
18885
|
{ value: 3, key: "c", context: unboundThis },
|
18886
18886
|
];
|
18887
18887
|
|
18888
|
-
map.forEach(function(value, key) {
|
18888
|
+
map.forEach(function(value, key, theMap) {
|
18889
18889
|
var expectation = expectations[iteration];
|
18890
18890
|
|
18891
18891
|
equal(value, expectation.value, 'value should be correct');
|
18892
18892
|
equal(key, expectation.key, 'key should be correct');
|
18893
18893
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
18894
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
18894
18895
|
|
18895
18896
|
iteration++;
|
18896
18897
|
});
|
@@ -18912,12 +18913,13 @@ enifed("ember-metal/tests/map_test",
|
|
18912
18913
|
{ value: 3, key: "c", context: context },
|
18913
18914
|
];
|
18914
18915
|
|
18915
|
-
map.forEach(function(value, key) {
|
18916
|
+
map.forEach(function(value, key, theMap) {
|
18916
18917
|
var expectation = expectations[iteration];
|
18917
18918
|
|
18918
18919
|
equal(value, expectation.value, 'value should be correct');
|
18919
18920
|
equal(key, expectation.key, 'key should be correct');
|
18920
18921
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
18922
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
18921
18923
|
|
18922
18924
|
iteration++;
|
18923
18925
|
|
@@ -18938,7 +18940,7 @@ enifed("ember-metal/tests/map_test",
|
|
18938
18940
|
{ value: 2, key: "b", context: unboundThis }
|
18939
18941
|
];
|
18940
18942
|
|
18941
|
-
map.forEach(function(value, key) {
|
18943
|
+
map.forEach(function(value, key, theMap) {
|
18942
18944
|
if (iteration === 0) {
|
18943
18945
|
map["delete"]("c");
|
18944
18946
|
}
|
@@ -18948,6 +18950,7 @@ enifed("ember-metal/tests/map_test",
|
|
18948
18950
|
equal(value, expectation.value, 'value should be correct');
|
18949
18951
|
equal(key, expectation.key, 'key should be correct');
|
18950
18952
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
18953
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
18951
18954
|
|
18952
18955
|
iteration++;
|
18953
18956
|
});
|
@@ -18969,7 +18972,7 @@ enifed("ember-metal/tests/map_test",
|
|
18969
18972
|
{ value: 4, key: "d", context: unboundThis },
|
18970
18973
|
];
|
18971
18974
|
|
18972
|
-
map.forEach(function(value, key) {
|
18975
|
+
map.forEach(function(value, key, theMap) {
|
18973
18976
|
if (iteration === 0) {
|
18974
18977
|
map.set('d', 4);
|
18975
18978
|
}
|
@@ -18979,6 +18982,7 @@ enifed("ember-metal/tests/map_test",
|
|
18979
18982
|
equal(value, expectation.value, 'value should be correct');
|
18980
18983
|
equal(key, expectation.key, 'key should be correct');
|
18981
18984
|
equal(this, expectation.context, 'context should be as if it was unbound');
|
18985
|
+
equal(map, theMap, 'map being iterated over should be passed in');
|
18982
18986
|
|
18983
18987
|
iteration++;
|
18984
18988
|
});
|
@@ -25590,7 +25594,7 @@ enifed("ember-routing-handlebars/tests/helpers/outlet_test",
|
|
25590
25594
|
});
|
25591
25595
|
|
25592
25596
|
test("outlet should support an optional name", function() {
|
25593
|
-
var template = "<h1>HI</h1>{{outlet mainView}}";
|
25597
|
+
var template = "<h1>HI</h1>{{outlet 'mainView'}}";
|
25594
25598
|
view = EmberView.create({
|
25595
25599
|
template: EmberHandlebars.compile(template)
|
25596
25600
|
});
|
@@ -25810,6 +25814,33 @@ enifed("ember-routing-handlebars/tests/helpers/outlet_test",
|
|
25810
25814
|
// Replace whitespace for older IE
|
25811
25815
|
equal(trim(view.$().text()), 'HIBYE');
|
25812
25816
|
});
|
25817
|
+
|
25818
|
+
test("should not throw deprecations if {{outlet}} is used without a name", function() {
|
25819
|
+
expectNoDeprecation();
|
25820
|
+
view = EmberView.create({
|
25821
|
+
template: compile("{{outlet}}")
|
25822
|
+
});
|
25823
|
+
appendView(view);
|
25824
|
+
});
|
25825
|
+
|
25826
|
+
test("should not throw deprecations if {{outlet}} is used with a quoted name", function() {
|
25827
|
+
expectNoDeprecation();
|
25828
|
+
view = EmberView.create({
|
25829
|
+
template: compile("{{outlet \"foo\"}}"),
|
25830
|
+
});
|
25831
|
+
appendView(view);
|
25832
|
+
});
|
25833
|
+
|
25834
|
+
|
25835
|
+
test("should throw a deprecation if {{outlet}} is used with an unquoted name", function() {
|
25836
|
+
view = EmberView.create({
|
25837
|
+
template: compile("{{outlet foo}}")
|
25838
|
+
});
|
25839
|
+
expectDeprecation(function() {
|
25840
|
+
appendView(view);
|
25841
|
+
}, 'Using {{outlet}} with an unquoted name is not supported. Please update to quoted usage \'{{outlet "foo"}}\'.');
|
25842
|
+
});
|
25843
|
+
|
25813
25844
|
});
|
25814
25845
|
enifed("ember-routing-handlebars/tests/helpers/outlet_test.jshint",
|
25815
25846
|
[],
|
@@ -56927,7 +56958,7 @@ enifed("ember/tests/routing/basic_test",
|
|
56927
56958
|
"<div class='alert-box'>Invader!</div>"
|
56928
56959
|
);
|
56929
56960
|
Ember.TEMPLATES.the_real_home_template = Ember.Handlebars.compile(
|
56930
|
-
"<p>THIS IS THE REAL HOME</p>{{outlet alert}}"
|
56961
|
+
"<p>THIS IS THE REAL HOME</p>{{outlet 'alert'}}"
|
56931
56962
|
);
|
56932
56963
|
|
56933
56964
|
App.HomeController = Ember.Controller.extend();
|
@@ -58671,7 +58702,7 @@ enifed("ember/tests/routing/basic_test",
|
|
58671
58702
|
|
58672
58703
|
|
58673
58704
|
test("Only use route rendered into main outlet for default into property on child", function() {
|
58674
|
-
Ember.TEMPLATES.application = compile("{{outlet menu}}{{outlet}}");
|
58705
|
+
Ember.TEMPLATES.application = compile("{{outlet 'menu'}}{{outlet}}");
|
58675
58706
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
58676
58707
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex");
|
58677
58708
|
Ember.TEMPLATES['posts/menu'] = compile("postsMenu");
|
@@ -58982,7 +59013,7 @@ enifed("ember/tests/routing/basic_test",
|
|
58982
59013
|
});
|
58983
59014
|
|
58984
59015
|
test("Route should tear down multiple outlets", function() {
|
58985
|
-
Ember.TEMPLATES.application = compile("{{outlet menu}}{{outlet}}{{outlet footer}}");
|
59016
|
+
Ember.TEMPLATES.application = compile("{{outlet 'menu'}}{{outlet}}{{outlet 'footer'}}");
|
58986
59017
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
58987
59018
|
Ember.TEMPLATES.users = compile("users");
|
58988
59019
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex");
|
@@ -59045,7 +59076,7 @@ enifed("ember/tests/routing/basic_test",
|
|
59045
59076
|
|
59046
59077
|
|
59047
59078
|
test("Route supports clearing outlet explicitly", function() {
|
59048
|
-
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet modal}}");
|
59079
|
+
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet 'modal'}}");
|
59049
59080
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
59050
59081
|
Ember.TEMPLATES.users = compile("users");
|
59051
59082
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex {{outlet}}");
|
@@ -59128,7 +59159,7 @@ enifed("ember/tests/routing/basic_test",
|
|
59128
59159
|
});
|
59129
59160
|
|
59130
59161
|
test("Route supports clearing outlet using string parameter", function() {
|
59131
|
-
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet modal}}");
|
59162
|
+
Ember.TEMPLATES.application = compile("{{outlet}}{{outlet 'modal'}}");
|
59132
59163
|
Ember.TEMPLATES.posts = compile("{{outlet}}");
|
59133
59164
|
Ember.TEMPLATES.users = compile("users");
|
59134
59165
|
Ember.TEMPLATES['posts/index'] = compile("postsIndex {{outlet}}");
|
@@ -59186,7 +59217,7 @@ enifed("ember/tests/routing/basic_test",
|
|
59186
59217
|
expect(1); // handleURL
|
59187
59218
|
|
59188
59219
|
Ember.TEMPLATES.application = compile("{{outlet}}");
|
59189
|
-
Ember.TEMPLATES.posts = compile("{{outlet modal}}");
|
59220
|
+
Ember.TEMPLATES.posts = compile("{{outlet 'modal'}}");
|
59190
59221
|
Ember.TEMPLATES.modal = compile("A Yo.");
|
59191
59222
|
|
59192
59223
|
Router.map(function() {
|