ember-source 2.12.0.beta.2 → 2.12.0.beta.3
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 -13
- data/dist/ember-template-compiler.js +10 -6
- data/dist/ember-testing.js +2 -2
- data/dist/ember-tests.js +103 -20
- data/dist/ember-tests.prod.js +101 -20
- data/dist/ember.debug.js +47 -32
- data/dist/ember.js +47 -32
- data/dist/ember.min.js +746 -742
- data/dist/ember.prod.js +45 -30
- metadata +2 -2
data/dist/ember.prod.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.12.0-beta.
|
9
|
+
* @version 2.12.0-beta.3
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -164,7 +164,7 @@ function defaults(obj, defaults) {
|
|
164
164
|
return obj;
|
165
165
|
}
|
166
166
|
|
167
|
-
babelHelpers = {
|
167
|
+
var babelHelpers = {
|
168
168
|
inherits: inherits,
|
169
169
|
taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
|
170
170
|
slice: Array.prototype.slice,
|
@@ -6043,7 +6043,8 @@ enifed('ember-extension-support/data_adapter', ['exports', 'ember-utils', 'ember
|
|
6043
6043
|
_nameToClass: function (type) {
|
6044
6044
|
if (typeof type === 'string') {
|
6045
6045
|
var owner = _emberUtils.getOwner(this);
|
6046
|
-
|
6046
|
+
var Factory = owner[_container.FACTORY_FOR]('model:' + type);
|
6047
|
+
type = Factory && Factory.class;
|
6047
6048
|
}
|
6048
6049
|
return type;
|
6049
6050
|
},
|
@@ -8460,7 +8461,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
8460
8461
|
this.isInteractive = owner.lookup('-environment:main').isInteractive;
|
8461
8462
|
|
8462
8463
|
// can be removed once https://github.com/tildeio/glimmer/pull/305 lands
|
8463
|
-
this.destroyedComponents =
|
8464
|
+
this.destroyedComponents = [];
|
8464
8465
|
|
8465
8466
|
_emberGlimmerProtocolForUrl.default(this);
|
8466
8467
|
|
@@ -8817,16 +8818,16 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
8817
8818
|
this.inTransaction = true;
|
8818
8819
|
|
8819
8820
|
_GlimmerEnvironment.prototype.begin.call(this);
|
8820
|
-
|
8821
|
-
this.destroyedComponents = [];
|
8822
8821
|
};
|
8823
8822
|
|
8824
8823
|
Environment.prototype.commit = function commit() {
|
8824
|
+
var destroyedComponents = this.destroyedComponents;
|
8825
|
+
this.destroyedComponents = [];
|
8825
8826
|
// components queued for destruction must be destroyed before firing
|
8826
8827
|
// `didCreate` to prevent errors when removing and adding a component
|
8827
8828
|
// with the same name (would throw an error when added to view registry)
|
8828
|
-
for (var i = 0; i <
|
8829
|
-
|
8829
|
+
for (var i = 0; i < destroyedComponents.length; i++) {
|
8830
|
+
destroyedComponents[i].destroy();
|
8830
8831
|
}
|
8831
8832
|
|
8832
8833
|
_GlimmerEnvironment.prototype.commit.call(this);
|
@@ -9537,7 +9538,7 @@ enifed('ember-glimmer/helpers/component', ['exports', 'ember-utils', 'ember-glim
|
|
9537
9538
|
)}}
|
9538
9539
|
```
|
9539
9540
|
|
9540
|
-
When yielding the component via the `hash` helper, the component is
|
9541
|
+
When yielding the component via the `hash` helper, the component is invoked directly.
|
9541
9542
|
See the following snippet:
|
9542
9543
|
|
9543
9544
|
```
|
@@ -16619,6 +16620,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
|
|
16619
16620
|
exports.getOnerror = getOnerror;
|
16620
16621
|
exports.setOnerror = setOnerror;
|
16621
16622
|
exports.dispatchError = dispatchError;
|
16623
|
+
exports.getDispatchOverride = getDispatchOverride;
|
16622
16624
|
exports.setDispatchOverride = setDispatchOverride;
|
16623
16625
|
|
16624
16626
|
// To maintain stacktrace consistency across browsers
|
@@ -16659,6 +16661,10 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
|
|
16659
16661
|
|
16660
16662
|
// allows testing adapter to override dispatch
|
16661
16663
|
|
16664
|
+
function getDispatchOverride() {
|
16665
|
+
return dispatchOverride;
|
16666
|
+
}
|
16667
|
+
|
16662
16668
|
function setDispatchOverride(handler) {
|
16663
16669
|
dispatchOverride = handler;
|
16664
16670
|
}
|
@@ -21187,7 +21193,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-utils', 'ember-metal/debug', '
|
|
21187
21193
|
|
21188
21194
|
var onErrorTarget = {
|
21189
21195
|
get onerror() {
|
21190
|
-
return _emberMetalError_handler.
|
21196
|
+
return _emberMetalError_handler.dispatchError;
|
21191
21197
|
},
|
21192
21198
|
set onerror(handler) {
|
21193
21199
|
return _emberMetalError_handler.setOnerror(handler);
|
@@ -33735,9 +33741,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
|
|
33735
33741
|
only a sender and key value as parameters or, if you aren't interested in
|
33736
33742
|
any of these values, to write an observer that has no parameters at all.
|
33737
33743
|
@method addObserver
|
33738
|
-
@param {String} key The key to
|
33744
|
+
@param {String} key The key to observe
|
33739
33745
|
@param {Object} target The target object to invoke
|
33740
|
-
@param {String|Function} method The method to invoke
|
33746
|
+
@param {String|Function} method The method to invoke
|
33741
33747
|
@public
|
33742
33748
|
*/
|
33743
33749
|
addObserver: function (key, target, method) {
|
@@ -33749,9 +33755,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
|
|
33749
33755
|
the same key, target, and method you passed to `addObserver()` and your
|
33750
33756
|
target will no longer receive notifications.
|
33751
33757
|
@method removeObserver
|
33752
|
-
@param {String} key The key to
|
33758
|
+
@param {String} key The key to observe
|
33753
33759
|
@param {Object} target The target object to invoke
|
33754
|
-
@param {String|Function} method The method to invoke
|
33760
|
+
@param {String|Function} method The method to invoke
|
33755
33761
|
@public
|
33756
33762
|
*/
|
33757
33763
|
removeObserver: function (key, target, method) {
|
@@ -37494,8 +37500,7 @@ enifed('ember-utils/owner', ['exports', 'ember-utils/symbol'], function (exports
|
|
37494
37500
|
For example, this component dynamically looks up a service based on the
|
37495
37501
|
`audioType` passed as an attribute:
|
37496
37502
|
|
37497
|
-
```
|
37498
|
-
// app/components/play-audio.js
|
37503
|
+
```app/components/play-audio.js
|
37499
37504
|
import Ember from 'ember';
|
37500
37505
|
|
37501
37506
|
// Usage:
|
@@ -37717,7 +37722,7 @@ enifed('ember-views/index', ['exports', 'ember-views/system/ext', 'ember-views/s
|
|
37717
37722
|
exports.getViewId = _emberViewsSystemUtils.getViewId;
|
37718
37723
|
exports.getViewElement = _emberViewsSystemUtils.getViewElement;
|
37719
37724
|
exports.setViewElement = _emberViewsSystemUtils.setViewElement;
|
37720
|
-
exports.
|
37725
|
+
exports.constructStyleDeprecationMessage = _emberViewsSystemUtils.constructStyleDeprecationMessage;
|
37721
37726
|
exports.EventDispatcher = _emberViewsSystemEvent_dispatcher.default;
|
37722
37727
|
exports.ComponentLookup = _emberViewsComponent_lookup.default;
|
37723
37728
|
exports.TextSupport = _emberViewsMixinsText_support.default;
|
@@ -38926,9 +38931,11 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
|
|
38926
38931
|
throw new TypeError('Unable to add \'' + ROOT_ELEMENT_CLASS + '\' class to root element (' + (rootElement.selector || rootElement[0].tagName) + '). Make sure you set rootElement to the body or an element in the body.');
|
38927
38932
|
}
|
38928
38933
|
|
38934
|
+
var viewRegistry = this._getViewRegistry();
|
38935
|
+
|
38929
38936
|
for (event in events) {
|
38930
38937
|
if (events.hasOwnProperty(event)) {
|
38931
|
-
this.setupHandler(rootElement, event, events[event]);
|
38938
|
+
this.setupHandler(rootElement, event, events[event], viewRegistry);
|
38932
38939
|
}
|
38933
38940
|
}
|
38934
38941
|
},
|
@@ -38944,13 +38951,11 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
|
|
38944
38951
|
@param {Element} rootElement
|
38945
38952
|
@param {String} event the browser-originated event to listen to
|
38946
38953
|
@param {String} eventName the name of the method to call on the view
|
38954
|
+
@param {Object} viewRegistry
|
38947
38955
|
*/
|
38948
|
-
setupHandler: function (rootElement, event, eventName) {
|
38956
|
+
setupHandler: function (rootElement, event, eventName, viewRegistry) {
|
38949
38957
|
var self = this;
|
38950
38958
|
|
38951
|
-
var owner = _emberUtils.getOwner(this);
|
38952
|
-
var viewRegistry = owner && owner.lookup('-view-registry:main') || _emberViewsCompatFallbackViewRegistry.default;
|
38953
|
-
|
38954
38959
|
if (eventName === null) {
|
38955
38960
|
return;
|
38956
38961
|
}
|
@@ -38991,6 +38996,13 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
|
|
38991
38996
|
});
|
38992
38997
|
},
|
38993
38998
|
|
38999
|
+
_getViewRegistry: function () {
|
39000
|
+
var owner = _emberUtils.getOwner(this);
|
39001
|
+
var viewRegistry = owner && owner.lookup('-view-registry:main') || _emberViewsCompatFallbackViewRegistry.default;
|
39002
|
+
|
39003
|
+
return viewRegistry;
|
39004
|
+
},
|
39005
|
+
|
38994
39006
|
_findNearestEventManager: function (view, eventName) {
|
38995
39007
|
var manager = null;
|
38996
39008
|
|
@@ -39124,6 +39136,7 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
|
|
39124
39136
|
'use strict';
|
39125
39137
|
|
39126
39138
|
exports.isSimpleClick = isSimpleClick;
|
39139
|
+
exports.constructStyleDeprecationMessage = constructStyleDeprecationMessage;
|
39127
39140
|
exports.getRootViews = getRootViews;
|
39128
39141
|
exports.getViewId = getViewId;
|
39129
39142
|
exports.getViewElement = getViewElement;
|
@@ -39151,9 +39164,10 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
|
|
39151
39164
|
return !modifier && !secondaryClick;
|
39152
39165
|
}
|
39153
39166
|
|
39154
|
-
|
39167
|
+
function constructStyleDeprecationMessage(affectedStyle) {
|
39168
|
+
return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. ' + 'Style affected: "' + affectedStyle + '"';
|
39169
|
+
}
|
39155
39170
|
|
39156
|
-
exports.STYLE_WARNING = STYLE_WARNING;
|
39157
39171
|
/**
|
39158
39172
|
@private
|
39159
39173
|
@method getRootViews
|
@@ -40157,7 +40171,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
|
|
40157
40171
|
enifed("ember/version", ["exports"], function (exports) {
|
40158
40172
|
"use strict";
|
40159
40173
|
|
40160
|
-
exports.default = "2.12.0-beta.
|
40174
|
+
exports.default = "2.12.0-beta.3";
|
40161
40175
|
});
|
40162
40176
|
enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
|
40163
40177
|
'use strict';
|
@@ -55531,6 +55545,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
55531
55545
|
} else {
|
55532
55546
|
if (then$$ === GET_THEN_ERROR) {
|
55533
55547
|
reject(promise, GET_THEN_ERROR.error);
|
55548
|
+
GET_THEN_ERROR.error = null;
|
55534
55549
|
} else if (then$$ === undefined) {
|
55535
55550
|
fulfill(promise, maybeThenable);
|
55536
55551
|
} else if (isFunction(then$$)) {
|
@@ -55658,10 +55673,10 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
55658
55673
|
if (value === TRY_CATCH_ERROR) {
|
55659
55674
|
failed = true;
|
55660
55675
|
error = value.error;
|
55661
|
-
value = null;
|
55676
|
+
value.error = null; // release
|
55662
55677
|
} else {
|
55663
|
-
|
55664
|
-
|
55678
|
+
succeeded = true;
|
55679
|
+
}
|
55665
55680
|
|
55666
55681
|
if (promise === value) {
|
55667
55682
|
reject(promise, withOwnPromise());
|
@@ -56445,7 +56460,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
56445
56460
|
try {
|
56446
56461
|
return findAuthor(); // succeed or fail
|
56447
56462
|
} catch(error) {
|
56448
|
-
return
|
56463
|
+
return findOtherAuthor();
|
56449
56464
|
} finally {
|
56450
56465
|
// always runs
|
56451
56466
|
// doesn't affect the return value
|
@@ -56456,7 +56471,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
56456
56471
|
|
56457
56472
|
```js
|
56458
56473
|
findAuthor().catch(function(reason){
|
56459
|
-
return
|
56474
|
+
return findOtherAuthor();
|
56460
56475
|
}).finally(function(){
|
56461
56476
|
// author was either found, or not
|
56462
56477
|
});
|
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: 2.12.0.beta.
|
4
|
+
version: 2.12.0.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ember.js source code wrapper for use with Ruby libs.
|
14
14
|
email:
|