ember-source 1.9.0.beta.3 → 1.9.0.beta.4
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-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
data/dist/ember.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() {
|
@@ -4983,10 +4983,12 @@ enifed("ember-handlebars/controls",
|
|
4983
4983
|
The action property defines the action which is sent when
|
4984
4984
|
the user presses the return key.
|
4985
4985
|
|
4986
|
+
|
4986
4987
|
```handlebars
|
4987
4988
|
{{input action="submit"}}
|
4988
4989
|
```
|
4989
4990
|
|
4991
|
+
|
4990
4992
|
The helper allows some user events to send actions.
|
4991
4993
|
|
4992
4994
|
* `enter`
|
@@ -5000,10 +5002,12 @@ enifed("ember-handlebars/controls",
|
|
5000
5002
|
For example, if you desire an action to be sent when the input is blurred,
|
5001
5003
|
you only need to setup the action name to the event name property.
|
5002
5004
|
|
5005
|
+
|
5003
5006
|
```handlebars
|
5004
5007
|
{{input focus-in="alertMessage"}}
|
5005
5008
|
```
|
5006
5009
|
|
5010
|
+
|
5007
5011
|
See more about [Text Support Actions](/api/classes/Ember.TextField.html)
|
5008
5012
|
|
5009
5013
|
## Extension
|
@@ -7427,8 +7431,8 @@ enifed("ember-handlebars/helpers/binding",
|
|
7427
7431
|
__exports__.bindHelper = bindHelper;
|
7428
7432
|
});
|
7429
7433
|
enifed("ember-handlebars/helpers/collection",
|
7430
|
-
["ember-metal/core","ember-handlebars-compiler","ember-metal/mixin","ember-runtime/system/string","ember-metal/property_get","ember-metal/streams/simple","ember-handlebars/ext","ember-handlebars/helpers/view","ember-
|
7431
|
-
function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__,
|
7434
|
+
["ember-metal/core","ember-handlebars-compiler","ember-metal/mixin","ember-runtime/system/string","ember-metal/property_get","ember-metal/streams/simple","ember-handlebars/ext","ember-handlebars/helpers/view","ember-views/views/view","ember-views/views/collection_view","exports"],
|
7435
|
+
function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __exports__) {
|
7432
7436
|
"use strict";
|
7433
7437
|
/**
|
7434
7438
|
@module ember
|
@@ -7449,9 +7453,8 @@ enifed("ember-handlebars/helpers/collection",
|
|
7449
7453
|
var SimpleStream = __dependency6__["default"];
|
7450
7454
|
var handlebarsGetView = __dependency7__.handlebarsGetView;
|
7451
7455
|
var ViewHelper = __dependency8__.ViewHelper;
|
7452
|
-
var
|
7453
|
-
var
|
7454
|
-
var CollectionView = __dependency11__["default"];
|
7456
|
+
var View = __dependency9__["default"];
|
7457
|
+
var CollectionView = __dependency10__["default"];
|
7455
7458
|
|
7456
7459
|
/**
|
7457
7460
|
`{{collection}}` is a `Ember.Handlebars` helper for adding instances of
|
@@ -7677,9 +7680,9 @@ enifed("ember-handlebars/helpers/collection",
|
|
7677
7680
|
if (emptyViewClass) { hash.emptyView = emptyViewClass; }
|
7678
7681
|
|
7679
7682
|
if (hash.keyword) {
|
7680
|
-
itemHash.
|
7683
|
+
itemHash._contextBinding = '_parentView.context';
|
7681
7684
|
} else {
|
7682
|
-
itemHash.
|
7685
|
+
itemHash._contextBinding = 'content';
|
7683
7686
|
}
|
7684
7687
|
|
7685
7688
|
var viewOptions = ViewHelper.propertiesFromHTMLOptions({ data: data, hash: itemHash }, this);
|
@@ -7700,7 +7703,8 @@ enifed("ember-handlebars/helpers/collection",
|
|
7700
7703
|
viewOptions.classNameBindings = itemClassBindings;
|
7701
7704
|
}
|
7702
7705
|
|
7703
|
-
hash.itemViewClass = itemViewClass
|
7706
|
+
hash.itemViewClass = itemViewClass;
|
7707
|
+
hash._itemViewProps = viewOptions;
|
7704
7708
|
|
7705
7709
|
options.helperName = options.helperName || 'collection';
|
7706
7710
|
|
@@ -12755,7 +12759,7 @@ enifed("ember-metal/core",
|
|
12755
12759
|
|
12756
12760
|
@class Ember
|
12757
12761
|
@static
|
12758
|
-
@version 1.9.0-beta.
|
12762
|
+
@version 1.9.0-beta.4
|
12759
12763
|
*/
|
12760
12764
|
|
12761
12765
|
if ('undefined' === typeof Ember) {
|
@@ -12782,10 +12786,10 @@ enifed("ember-metal/core",
|
|
12782
12786
|
/**
|
12783
12787
|
@property VERSION
|
12784
12788
|
@type String
|
12785
|
-
@default '1.9.0-beta.
|
12789
|
+
@default '1.9.0-beta.4'
|
12786
12790
|
@static
|
12787
12791
|
*/
|
12788
|
-
Ember.VERSION = '1.9.0-beta.
|
12792
|
+
Ember.VERSION = '1.9.0-beta.4';
|
12789
12793
|
|
12790
12794
|
/**
|
12791
12795
|
Standard environmental variables. You can define these in a global `EmberENV`
|
@@ -13508,7 +13512,7 @@ enifed("ember-metal/events",
|
|
13508
13512
|
@for Ember
|
13509
13513
|
@param obj
|
13510
13514
|
@param {String} eventName
|
13511
|
-
@param {Object|Function}
|
13515
|
+
@param {Object|Function} target A target object or a function
|
13512
13516
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
13513
13517
|
@param {Boolean} once A flag whether a function should only be called once
|
13514
13518
|
*/
|
@@ -13543,7 +13547,7 @@ enifed("ember-metal/events",
|
|
13543
13547
|
@for Ember
|
13544
13548
|
@param obj
|
13545
13549
|
@param {String} eventName
|
13546
|
-
@param {Object|Function}
|
13550
|
+
@param {Object|Function} target A target object or a function
|
13547
13551
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
13548
13552
|
*/
|
13549
13553
|
function removeListener(obj, eventName, target, method) {
|
@@ -13594,7 +13598,7 @@ enifed("ember-metal/events",
|
|
13594
13598
|
@private
|
13595
13599
|
@param obj
|
13596
13600
|
@param {String} eventName
|
13597
|
-
@param {Object|Function}
|
13601
|
+
@param {Object|Function} target A target object or a function
|
13598
13602
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
13599
13603
|
@param {Function} callback
|
13600
13604
|
*/
|
@@ -13625,8 +13629,8 @@ enifed("ember-metal/events",
|
|
13625
13629
|
|
13626
13630
|
@private
|
13627
13631
|
@param obj
|
13628
|
-
@param {Array}
|
13629
|
-
@param {Object|Function}
|
13632
|
+
@param {Array} eventNames Array of event names
|
13633
|
+
@param {Object|Function} target A target object or a function
|
13630
13634
|
@param {Function|String} method A function or the name of a function to be called on `target`
|
13631
13635
|
@param {Function} callback
|
13632
13636
|
*/
|
@@ -14276,6 +14280,7 @@ enifed("ember-metal/is_empty",
|
|
14276
14280
|
Ember.isEmpty(undefined); // true
|
14277
14281
|
Ember.isEmpty(''); // true
|
14278
14282
|
Ember.isEmpty([]); // true
|
14283
|
+
Ember.isEmpty({}); // false
|
14279
14284
|
Ember.isEmpty('Adam Hawkins'); // false
|
14280
14285
|
Ember.isEmpty([0,1,2]); // false
|
14281
14286
|
```
|
@@ -15035,7 +15040,8 @@ enifed("ember-metal/map",
|
|
15035
15040
|
|
15036
15041
|
/**
|
15037
15042
|
Iterate over all the keys and values. Calls the function once
|
15038
|
-
for each key, passing in
|
15043
|
+
for each key, passing in value, key, and the map being iterated over,
|
15044
|
+
in that order.
|
15039
15045
|
|
15040
15046
|
The keys are guaranteed to be iterated over in insertion order.
|
15041
15047
|
|
@@ -15058,11 +15064,11 @@ enifed("ember-metal/map",
|
|
15058
15064
|
if (length === 2) {
|
15059
15065
|
thisArg = arguments[1];
|
15060
15066
|
cb = function(key) {
|
15061
|
-
callback.call(thisArg, map.get(key), key);
|
15067
|
+
callback.call(thisArg, map.get(key), key, map);
|
15062
15068
|
};
|
15063
15069
|
} else {
|
15064
15070
|
cb = function(key) {
|
15065
|
-
callback(map.get(key), key);
|
15071
|
+
callback(map.get(key), key, map);
|
15066
15072
|
};
|
15067
15073
|
}
|
15068
15074
|
|
@@ -16149,12 +16155,12 @@ enifed("ember-metal/observer",
|
|
16149
16155
|
@for Ember
|
16150
16156
|
@param obj
|
16151
16157
|
@param {String} path
|
16152
|
-
@param {Object|Function}
|
16158
|
+
@param {Object|Function} target
|
16153
16159
|
@param {Function|String} [method]
|
16154
16160
|
*/
|
16155
|
-
function removeObserver(obj,
|
16156
|
-
unwatch(obj,
|
16157
|
-
removeListener(obj, changeEvent(
|
16161
|
+
function removeObserver(obj, path, target, method) {
|
16162
|
+
unwatch(obj, path);
|
16163
|
+
removeListener(obj, changeEvent(path), target, method);
|
16158
16164
|
|
16159
16165
|
return this;
|
16160
16166
|
}
|
@@ -16164,12 +16170,12 @@ enifed("ember-metal/observer",
|
|
16164
16170
|
@for Ember
|
16165
16171
|
@param obj
|
16166
16172
|
@param {String} path
|
16167
|
-
@param {Object|Function}
|
16173
|
+
@param {Object|Function} target
|
16168
16174
|
@param {Function|String} [method]
|
16169
16175
|
*/
|
16170
|
-
function addBeforeObserver(obj,
|
16171
|
-
addListener(obj, beforeEvent(
|
16172
|
-
watch(obj,
|
16176
|
+
function addBeforeObserver(obj, path, target, method) {
|
16177
|
+
addListener(obj, beforeEvent(path), target, method);
|
16178
|
+
watch(obj, path);
|
16173
16179
|
|
16174
16180
|
return this;
|
16175
16181
|
}
|
@@ -16205,12 +16211,12 @@ enifed("ember-metal/observer",
|
|
16205
16211
|
@for Ember
|
16206
16212
|
@param obj
|
16207
16213
|
@param {String} path
|
16208
|
-
@param {Object|Function}
|
16214
|
+
@param {Object|Function} target
|
16209
16215
|
@param {Function|String} [method]
|
16210
16216
|
*/
|
16211
|
-
function removeBeforeObserver(obj,
|
16212
|
-
unwatch(obj,
|
16213
|
-
removeListener(obj, beforeEvent(
|
16217
|
+
function removeBeforeObserver(obj, path, target, method) {
|
16218
|
+
unwatch(obj, path);
|
16219
|
+
removeListener(obj, beforeEvent(path), target, method);
|
16214
16220
|
|
16215
16221
|
return this;
|
16216
16222
|
}
|
@@ -18586,22 +18592,17 @@ enifed("ember-metal/utils",
|
|
18586
18592
|
this.cache = {};
|
18587
18593
|
this.cacheMeta = {};
|
18588
18594
|
this.source = obj;
|
18595
|
+
this.deps = undefined;
|
18596
|
+
this.listeners = undefined;
|
18597
|
+
this.mixins = undefined;
|
18598
|
+
this.bindings = undefined;
|
18599
|
+
this.chains = undefined;
|
18600
|
+
this.values = undefined;
|
18601
|
+
this.proto = undefined;
|
18589
18602
|
}
|
18590
18603
|
|
18591
18604
|
Meta.prototype = {
|
18592
|
-
|
18593
|
-
deps: null,
|
18594
|
-
watching: null,
|
18595
|
-
listeners: null,
|
18596
|
-
cache: null,
|
18597
|
-
cacheMeta: null,
|
18598
|
-
source: null,
|
18599
|
-
mixins: null,
|
18600
|
-
bindings: null,
|
18601
|
-
chains: null,
|
18602
|
-
chainWatchers: null,
|
18603
|
-
values: null,
|
18604
|
-
proto: null
|
18605
|
+
chainWatchers: null
|
18605
18606
|
};
|
18606
18607
|
|
18607
18608
|
if (!canDefineNonEnumerableProperties) {
|
@@ -20907,6 +20908,7 @@ enifed("ember-routing-handlebars/helpers/outlet",
|
|
20907
20908
|
property = 'main';
|
20908
20909
|
}
|
20909
20910
|
|
20911
|
+
|
20910
20912
|
var view = options.data.view;
|
20911
20913
|
var container = view.container;
|
20912
20914
|
|
@@ -21524,7 +21526,7 @@ enifed("ember-routing/ext/view",
|
|
21524
21526
|
@method init
|
21525
21527
|
*/
|
21526
21528
|
init: function() {
|
21527
|
-
|
21529
|
+
this._outlets = {};
|
21528
21530
|
this._super();
|
21529
21531
|
},
|
21530
21532
|
|
@@ -28525,8 +28527,9 @@ enifed("ember-runtime/copy",
|
|
28525
28527
|
any type of object and create a clone of it, including primitive values
|
28526
28528
|
(which are not actually cloned because they are immutable).
|
28527
28529
|
|
28528
|
-
If the passed object implements the `
|
28529
|
-
will simply call that method and return the result.
|
28530
|
+
If the passed object implements the `copy()` method, then this function
|
28531
|
+
will simply call that method and return the result. Please see
|
28532
|
+
`Ember.Copyable` for further details.
|
28530
28533
|
|
28531
28534
|
@method copy
|
28532
28535
|
@for Ember
|
@@ -31972,7 +31975,7 @@ enifed("ember-runtime/mixins/mutable_array",
|
|
31972
31975
|
//
|
31973
31976
|
|
31974
31977
|
/**
|
31975
|
-
Remove all
|
31978
|
+
Remove all occurrences of an object in the array.
|
31976
31979
|
|
31977
31980
|
```javascript
|
31978
31981
|
var cities = ["Chicago", "Berlin", "Lima", "Chicago"];
|
@@ -35531,6 +35534,7 @@ enifed("ember-runtime/system/set",
|
|
35531
35534
|
@uses Ember.Copyable
|
35532
35535
|
@uses Ember.Freezable
|
35533
35536
|
@since Ember 0.9
|
35537
|
+
@deprecated
|
35534
35538
|
*/
|
35535
35539
|
__exports__["default"] = CoreObject.extend(MutableEnumerable, Copyable, Freezable, {
|
35536
35540
|
|
@@ -38562,21 +38566,23 @@ enifed("ember-views/views/collection_view",
|
|
38562
38566
|
*/
|
38563
38567
|
arrayDidChange: function(content, start, removed, added) {
|
38564
38568
|
var addedViews = [];
|
38565
|
-
var view, item, idx, len, itemViewClass, emptyView;
|
38569
|
+
var view, item, idx, len, itemViewClass, emptyView, itemViewProps;
|
38566
38570
|
|
38567
38571
|
len = content ? get(content, 'length') : 0;
|
38568
38572
|
|
38569
38573
|
if (len) {
|
38574
|
+
itemViewProps = this._itemViewProps || {};
|
38570
38575
|
itemViewClass = get(this, 'itemViewClass');
|
38576
|
+
|
38571
38577
|
itemViewClass = readViewFactory(itemViewClass, this.container);
|
38572
38578
|
|
38573
38579
|
for (idx = start; idx < start+added; idx++) {
|
38574
38580
|
item = content.objectAt(idx);
|
38575
38581
|
|
38576
|
-
|
38577
|
-
|
38578
|
-
|
38579
|
-
|
38582
|
+
itemViewProps.content = item;
|
38583
|
+
itemViewProps.contentIndex = idx;
|
38584
|
+
|
38585
|
+
view = this.createChildView(itemViewClass, itemViewProps);
|
38580
38586
|
|
38581
38587
|
addedViews.push(view);
|
38582
38588
|
}
|
@@ -38590,6 +38596,7 @@ enifed("ember-views/views/collection_view",
|
|
38590
38596
|
}
|
38591
38597
|
|
38592
38598
|
emptyView = this.createChildView(emptyView);
|
38599
|
+
|
38593
38600
|
addedViews.push(emptyView);
|
38594
38601
|
set(this, 'emptyView', emptyView);
|
38595
38602
|
|
@@ -39242,12 +39249,9 @@ enifed("ember-views/views/container_view",
|
|
39242
39249
|
var dom = buffer.dom;
|
39243
39250
|
|
39244
39251
|
if (this.tagName === '') {
|
39245
|
-
|
39246
|
-
|
39247
|
-
|
39248
|
-
element = dom.createDocumentFragment();
|
39249
|
-
this._childViewsMorph = dom.appendMorph(element);
|
39250
|
-
}
|
39252
|
+
element = dom.createDocumentFragment();
|
39253
|
+
buffer._element = element;
|
39254
|
+
this._childViewsMorph = dom.appendMorph(element, this._morph.contextualElement);
|
39251
39255
|
} else {
|
39252
39256
|
this._childViewsMorph = dom.createMorph(element, element.lastChild, null);
|
39253
39257
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.0.beta.
|
4
|
+
version: 1.9.0.beta.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: handlebars-source
|