ember-source 2.15.0.beta.1 → 2.15.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 +130 -192
- data/dist/ember-template-compiler.js +16 -25
- data/dist/ember-testing.js +10 -12
- data/dist/ember-tests.js +122 -25
- data/dist/ember-tests.prod.js +122 -25
- data/dist/ember.debug.js +233 -223
- data/dist/ember.min.js +437 -437
- data/dist/ember.prod.js +341 -305
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2743f6de2a01a774a1efff9262397406fa8c5487
|
4
|
+
data.tar.gz: 968ace6ce3aecf383d9e12bf1edb6d560b983115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4356616a59d4022984ea28b92136a4deead6b140aa70615eb07ba2e1c73c192738e806a9b7167e83089417b989202bc4f06038d1755e78ac6287c70780909cc
|
7
|
+
data.tar.gz: b809c566e56d3ebd6b5949a6ba853f2032d7bceb8322b2855da8e0354395169333c01a14441dc52cbcf4b314184f2cfa1947331503a53062704688316a983b17
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.15.0.beta.
|
1
|
+
2.15.0.beta.2
|
data/dist/ember-runtime.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.15.0-beta.
|
9
|
+
* @version 2.15.0-beta.2
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -3749,10 +3749,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
3749
3749
|
{
|
3750
3750
|
counters.peekCalls++;
|
3751
3751
|
}
|
3752
|
-
|
3753
|
-
// that means the meta was deleted
|
3754
|
-
// any other truthy value is a "real" meta
|
3755
|
-
if (meta === null || meta !== undefined) {
|
3752
|
+
if (meta !== undefined) {
|
3756
3753
|
return meta;
|
3757
3754
|
}
|
3758
3755
|
|
@@ -3764,14 +3761,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
3764
3761
|
};
|
3765
3762
|
} else {
|
3766
3763
|
setMeta = function Fallback_setMeta(obj, meta) {
|
3767
|
-
|
3768
|
-
|
3769
|
-
|
3770
|
-
|
3771
|
-
obj.__defineNonEnumerable(EMBER_META_PROPERTY);
|
3772
|
-
} else {
|
3773
|
-
Object.defineProperty(obj, META_FIELD, META_DESC);
|
3774
|
-
}
|
3764
|
+
if (obj.__defineNonEnumerable) {
|
3765
|
+
obj.__defineNonEnumerable(EMBER_META_PROPERTY);
|
3766
|
+
} else {
|
3767
|
+
Object.defineProperty(obj, META_FIELD, META_DESC);
|
3775
3768
|
}
|
3776
3769
|
|
3777
3770
|
obj[META_FIELD] = meta;
|
@@ -3820,7 +3813,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
3820
3813
|
var parent = void 0;
|
3821
3814
|
|
3822
3815
|
// remove this code, in-favor of explicit parent
|
3823
|
-
if (maybeMeta !== undefined
|
3816
|
+
if (maybeMeta !== undefined) {
|
3824
3817
|
if (maybeMeta.source === obj) {
|
3825
3818
|
return maybeMeta;
|
3826
3819
|
}
|
@@ -9174,100 +9167,106 @@ enifed('rsvp', ['exports', 'ember-babel', 'node-module'], function (exports, _em
|
|
9174
9167
|
return child;
|
9175
9168
|
}
|
9176
9169
|
|
9177
|
-
|
9178
|
-
|
9179
|
-
|
9180
|
-
this._abortOnReject = abortOnReject;
|
9181
|
-
|
9182
|
-
this._init.apply(this, arguments);
|
9183
|
-
}
|
9170
|
+
var Enumerator = function () {
|
9171
|
+
function Enumerator(Constructor, input, abortOnReject, label) {
|
9172
|
+
(0, _emberBabel.classCallCheck)(this, Enumerator);
|
9184
9173
|
|
9185
|
-
|
9186
|
-
|
9187
|
-
|
9188
|
-
this._remaining = len;
|
9189
|
-
this._result = new Array(len);
|
9174
|
+
this._instanceConstructor = Constructor;
|
9175
|
+
this.promise = new Constructor(noop, label);
|
9176
|
+
this._abortOnReject = abortOnReject;
|
9190
9177
|
|
9191
|
-
|
9192
|
-
if (this._remaining === 0) {
|
9193
|
-
fulfill(this.promise, this._result);
|
9178
|
+
this._init.apply(this, arguments);
|
9194
9179
|
}
|
9195
|
-
};
|
9196
9180
|
|
9197
|
-
|
9198
|
-
|
9199
|
-
|
9181
|
+
Enumerator.prototype._init = function _init(Constructor, input) {
|
9182
|
+
var len = input.length || 0;
|
9183
|
+
this.length = len;
|
9184
|
+
this._remaining = len;
|
9185
|
+
this._result = new Array(len);
|
9200
9186
|
|
9201
|
-
|
9202
|
-
this.
|
9203
|
-
|
9204
|
-
|
9205
|
-
|
9206
|
-
Enumerator.prototype._settleMaybeThenable = function (entry, i) {
|
9207
|
-
var c = this._instanceConstructor;
|
9208
|
-
var resolve$$1 = c.resolve;
|
9187
|
+
this._enumerate(input);
|
9188
|
+
if (this._remaining === 0) {
|
9189
|
+
fulfill(this.promise, this._result);
|
9190
|
+
}
|
9191
|
+
};
|
9209
9192
|
|
9210
|
-
|
9211
|
-
var
|
9193
|
+
Enumerator.prototype._enumerate = function _enumerate(input) {
|
9194
|
+
var length = this.length;
|
9195
|
+
var promise = this.promise;
|
9212
9196
|
|
9213
|
-
|
9214
|
-
|
9215
|
-
this._settledAt(entry._state, i, entry._result);
|
9216
|
-
} else if (typeof then$$1 !== 'function') {
|
9217
|
-
this._remaining--;
|
9218
|
-
this._result[i] = this._makeResult(FULFILLED, i, entry);
|
9219
|
-
} else if (c === Promise) {
|
9220
|
-
var promise = new c(noop);
|
9221
|
-
handleMaybeThenable(promise, entry, then$$1);
|
9222
|
-
this._willSettleAt(promise, i);
|
9223
|
-
} else {
|
9224
|
-
this._willSettleAt(new c(function (resolve$$1) {
|
9225
|
-
return resolve$$1(entry);
|
9226
|
-
}), i);
|
9197
|
+
for (var i = 0; promise._state === PENDING && i < length; i++) {
|
9198
|
+
this._eachEntry(input[i], i);
|
9227
9199
|
}
|
9228
|
-
}
|
9229
|
-
this._willSettleAt(resolve$$1(entry), i);
|
9230
|
-
}
|
9231
|
-
};
|
9200
|
+
};
|
9232
9201
|
|
9233
|
-
|
9234
|
-
|
9235
|
-
|
9236
|
-
} else {
|
9237
|
-
this._remaining--;
|
9238
|
-
this._result[i] = this._makeResult(FULFILLED, i, entry);
|
9239
|
-
}
|
9240
|
-
};
|
9202
|
+
Enumerator.prototype._settleMaybeThenable = function _settleMaybeThenable(entry, i) {
|
9203
|
+
var c = this._instanceConstructor;
|
9204
|
+
var resolve$$1 = c.resolve;
|
9241
9205
|
|
9242
|
-
|
9243
|
-
|
9206
|
+
if (resolve$$1 === resolve$1) {
|
9207
|
+
var then$$1 = getThen(entry);
|
9244
9208
|
|
9245
|
-
|
9246
|
-
|
9247
|
-
|
9209
|
+
if (then$$1 === then && entry._state !== PENDING) {
|
9210
|
+
entry._onError = null;
|
9211
|
+
this._settledAt(entry._state, i, entry._result);
|
9212
|
+
} else if (typeof then$$1 !== 'function') {
|
9213
|
+
this._remaining--;
|
9214
|
+
this._result[i] = this._makeResult(FULFILLED, i, entry);
|
9215
|
+
} else if (c === Promise) {
|
9216
|
+
var promise = new c(noop);
|
9217
|
+
handleMaybeThenable(promise, entry, then$$1);
|
9218
|
+
this._willSettleAt(promise, i);
|
9219
|
+
} else {
|
9220
|
+
this._willSettleAt(new c(function (resolve$$1) {
|
9221
|
+
return resolve$$1(entry);
|
9222
|
+
}), i);
|
9223
|
+
}
|
9224
|
+
} else {
|
9225
|
+
this._willSettleAt(resolve$$1(entry), i);
|
9226
|
+
}
|
9227
|
+
};
|
9228
|
+
|
9229
|
+
Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {
|
9230
|
+
if (isMaybeThenable(entry)) {
|
9231
|
+
this._settleMaybeThenable(entry, i);
|
9248
9232
|
} else {
|
9249
9233
|
this._remaining--;
|
9250
|
-
this._result[i] = this._makeResult(
|
9251
|
-
|
9252
|
-
|
9234
|
+
this._result[i] = this._makeResult(FULFILLED, i, entry);
|
9235
|
+
}
|
9236
|
+
};
|
9237
|
+
|
9238
|
+
Enumerator.prototype._settledAt = function _settledAt(state, i, value) {
|
9239
|
+
var promise = this.promise;
|
9240
|
+
|
9241
|
+
if (promise._state === PENDING) {
|
9242
|
+
if (this._abortOnReject && state === REJECTED) {
|
9243
|
+
reject(promise, value);
|
9244
|
+
} else {
|
9245
|
+
this._remaining--;
|
9246
|
+
this._result[i] = this._makeResult(state, i, value);
|
9247
|
+
if (this._remaining === 0) {
|
9248
|
+
fulfill(promise, this._result);
|
9249
|
+
}
|
9253
9250
|
}
|
9254
9251
|
}
|
9255
|
-
}
|
9256
|
-
};
|
9252
|
+
};
|
9257
9253
|
|
9258
|
-
|
9259
|
-
|
9260
|
-
|
9254
|
+
Enumerator.prototype._makeResult = function _makeResult(state, i, value) {
|
9255
|
+
return value;
|
9256
|
+
};
|
9261
9257
|
|
9262
|
-
|
9263
|
-
|
9258
|
+
Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {
|
9259
|
+
var enumerator = this;
|
9264
9260
|
|
9265
|
-
|
9266
|
-
|
9267
|
-
|
9268
|
-
|
9269
|
-
|
9270
|
-
|
9261
|
+
subscribe(promise, undefined, function (value) {
|
9262
|
+
return enumerator._settledAt(FULFILLED, i, value);
|
9263
|
+
}, function (reason) {
|
9264
|
+
return enumerator._settledAt(REJECTED, i, reason);
|
9265
|
+
});
|
9266
|
+
};
|
9267
|
+
|
9268
|
+
return Enumerator;
|
9269
|
+
}();
|
9271
9270
|
|
9272
9271
|
function makeSettledResult(state, position, value) {
|
9273
9272
|
if (state === FULFILLED) {
|
@@ -9583,117 +9582,56 @@ enifed('rsvp', ['exports', 'ember-babel', 'node-module'], function (exports, _em
|
|
9583
9582
|
Useful for tooling.
|
9584
9583
|
@constructor
|
9585
9584
|
*/
|
9586
|
-
function Promise(resolver, label) {
|
9587
|
-
this._id = counter++;
|
9588
|
-
this._label = label;
|
9589
|
-
this._state = undefined;
|
9590
|
-
this._result = undefined;
|
9591
|
-
this._subscribers = [];
|
9592
9585
|
|
9593
|
-
|
9586
|
+
var Promise = function () {
|
9587
|
+
function Promise(resolver, label) {
|
9588
|
+
(0, _emberBabel.classCallCheck)(this, Promise);
|
9594
9589
|
|
9595
|
-
|
9596
|
-
|
9597
|
-
this
|
9598
|
-
|
9599
|
-
|
9590
|
+
this._id = counter++;
|
9591
|
+
this._label = label;
|
9592
|
+
this._state = undefined;
|
9593
|
+
this._result = undefined;
|
9594
|
+
this._subscribers = [];
|
9600
9595
|
|
9601
|
-
|
9602
|
-
var _this = this;
|
9596
|
+
config.instrument && instrument('created', this);
|
9603
9597
|
|
9604
|
-
|
9605
|
-
|
9606
|
-
|
9598
|
+
if (noop !== resolver) {
|
9599
|
+
typeof resolver !== 'function' && needsResolver();
|
9600
|
+
this instanceof Promise ? initializePromise(this, resolver) : needsNew();
|
9607
9601
|
}
|
9608
|
-
});
|
9609
|
-
};
|
9610
|
-
|
9611
|
-
/**
|
9612
|
-
`catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
|
9613
|
-
as the catch block of a try/catch statement.
|
9614
|
-
|
9615
|
-
```js
|
9616
|
-
function findAuthor(){
|
9617
|
-
throw new Error('couldn\'t find that author');
|
9618
|
-
}
|
9619
|
-
|
9620
|
-
// synchronous
|
9621
|
-
try {
|
9622
|
-
findAuthor();
|
9623
|
-
} catch(reason) {
|
9624
|
-
// something went wrong
|
9625
9602
|
}
|
9626
|
-
|
9627
|
-
// async with promises
|
9628
|
-
findAuthor().catch(function(reason){
|
9629
|
-
// something went wrong
|
9630
|
-
});
|
9631
|
-
```
|
9632
|
-
|
9633
|
-
@method catch
|
9634
|
-
@param {Function} onRejection
|
9635
|
-
@param {String} label optional string for labeling the promise.
|
9636
|
-
Useful for tooling.
|
9637
|
-
@return {Promise}
|
9638
|
-
*/
|
9639
|
-
Promise.prototype.catch = function (onRejection, label) {
|
9640
|
-
return this.then(undefined, onRejection, label);
|
9641
|
-
};
|
9642
9603
|
|
9643
|
-
|
9644
|
-
|
9645
|
-
try/catch/finally behaves
|
9646
|
-
|
9647
|
-
Synchronous example:
|
9648
|
-
|
9649
|
-
```js
|
9650
|
-
findAuthor() {
|
9651
|
-
if (Math.random() > 0.5) {
|
9652
|
-
throw new Error();
|
9653
|
-
}
|
9654
|
-
return new Author();
|
9655
|
-
}
|
9656
|
-
|
9657
|
-
try {
|
9658
|
-
return findAuthor(); // succeed or fail
|
9659
|
-
} catch(error) {
|
9660
|
-
return findOtherAuthor();
|
9661
|
-
} finally {
|
9662
|
-
// always runs
|
9663
|
-
// doesn't affect the return value
|
9664
|
-
}
|
9665
|
-
```
|
9666
|
-
|
9667
|
-
Asynchronous example:
|
9668
|
-
|
9669
|
-
```js
|
9670
|
-
findAuthor().catch(function(reason){
|
9671
|
-
return findOtherAuthor();
|
9672
|
-
}).finally(function(){
|
9673
|
-
// author was either found, or not
|
9674
|
-
});
|
9675
|
-
```
|
9676
|
-
|
9677
|
-
@method finally
|
9678
|
-
@param {Function} callback
|
9679
|
-
@param {String} label optional string for labeling the promise.
|
9680
|
-
Useful for tooling.
|
9681
|
-
@return {Promise}
|
9682
|
-
*/
|
9683
|
-
Promise.prototype.finally = function (callback, label) {
|
9684
|
-
var promise = this;
|
9685
|
-
var constructor = promise.constructor;
|
9604
|
+
Promise.prototype._onError = function _onError(reason) {
|
9605
|
+
var _this = this;
|
9686
9606
|
|
9687
|
-
|
9688
|
-
|
9689
|
-
|
9690
|
-
|
9691
|
-
}, function (reason) {
|
9692
|
-
return constructor.resolve(callback()).then(function () {
|
9693
|
-
throw reason;
|
9607
|
+
config.after(function () {
|
9608
|
+
if (_this._onError) {
|
9609
|
+
config.trigger('error', reason, _this._label);
|
9610
|
+
}
|
9694
9611
|
});
|
9695
|
-
}
|
9696
|
-
|
9612
|
+
};
|
9613
|
+
|
9614
|
+
Promise.prototype.catch = function _catch(onRejection, label) {
|
9615
|
+
return this.then(undefined, onRejection, label);
|
9616
|
+
};
|
9617
|
+
|
9618
|
+
Promise.prototype.finally = function _finally(callback, label) {
|
9619
|
+
var promise = this;
|
9620
|
+
var constructor = promise.constructor;
|
9621
|
+
|
9622
|
+
return promise.then(function (value) {
|
9623
|
+
return constructor.resolve(callback()).then(function () {
|
9624
|
+
return value;
|
9625
|
+
});
|
9626
|
+
}, function (reason) {
|
9627
|
+
return constructor.resolve(callback()).then(function () {
|
9628
|
+
throw reason;
|
9629
|
+
});
|
9630
|
+
}, label);
|
9631
|
+
};
|
9632
|
+
|
9633
|
+
return Promise;
|
9634
|
+
}();
|
9697
9635
|
|
9698
9636
|
Promise.cast = resolve$1; // deprecated
|
9699
9637
|
Promise.all = all;
|
@@ -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.15.0-beta.
|
9
|
+
* @version 2.15.0-beta.2
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -3974,7 +3974,6 @@ enifed('@glimmer/util', ['exports'], function (exports) {
|
|
3974
3974
|
|
3975
3975
|
// import Logger from './logger';
|
3976
3976
|
// let alreadyWarned = false;
|
3977
|
-
// import Logger from './logger';
|
3978
3977
|
|
3979
3978
|
|
3980
3979
|
function _classCallCheck(instance, Constructor) {
|
@@ -6729,6 +6728,7 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
|
|
6729
6728
|
@public
|
6730
6729
|
@static
|
6731
6730
|
@method registerDeprecationHandler
|
6731
|
+
@for Ember.Debug
|
6732
6732
|
@param handler {Function} A function to handle deprecation calls.
|
6733
6733
|
@since 2.1.0
|
6734
6734
|
*/
|
@@ -6910,13 +6910,7 @@ enifed("ember-debug/error", ["exports", "ember-babel"], function (exports, _embe
|
|
6910
6910
|
}
|
6911
6911
|
|
6912
6912
|
var error = Error.call(_this, message);
|
6913
|
-
|
6914
|
-
if (Error.captureStackTrace) {
|
6915
|
-
Error.captureStackTrace(_this, EmberError);
|
6916
|
-
} else {
|
6917
|
-
_this.stack = error.stack;
|
6918
|
-
}
|
6919
|
-
|
6913
|
+
_this.stack = error.stack;
|
6920
6914
|
_this.description = error.description;
|
6921
6915
|
_this.fileName = error.fileName;
|
6922
6916
|
_this.lineNumber = error.lineNumber;
|
@@ -7396,6 +7390,7 @@ enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate',
|
|
7396
7390
|
@public
|
7397
7391
|
@static
|
7398
7392
|
@method registerWarnHandler
|
7393
|
+
@for Ember.Debug
|
7399
7394
|
@param handler {Function} A function to handle warnings.
|
7400
7395
|
@since 2.1.0
|
7401
7396
|
*/
|
@@ -10023,10 +10018,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
10023
10018
|
{
|
10024
10019
|
counters.peekCalls++;
|
10025
10020
|
}
|
10026
|
-
|
10027
|
-
// that means the meta was deleted
|
10028
|
-
// any other truthy value is a "real" meta
|
10029
|
-
if (meta === null || meta !== undefined) {
|
10021
|
+
if (meta !== undefined) {
|
10030
10022
|
return meta;
|
10031
10023
|
}
|
10032
10024
|
|
@@ -10038,14 +10030,10 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
10038
10030
|
};
|
10039
10031
|
} else {
|
10040
10032
|
setMeta = function (obj, meta) {
|
10041
|
-
|
10042
|
-
|
10043
|
-
|
10044
|
-
|
10045
|
-
obj.__defineNonEnumerable(EMBER_META_PROPERTY);
|
10046
|
-
} else {
|
10047
|
-
Object.defineProperty(obj, META_FIELD, META_DESC);
|
10048
|
-
}
|
10033
|
+
if (obj.__defineNonEnumerable) {
|
10034
|
+
obj.__defineNonEnumerable(EMBER_META_PROPERTY);
|
10035
|
+
} else {
|
10036
|
+
Object.defineProperty(obj, META_FIELD, META_DESC);
|
10049
10037
|
}
|
10050
10038
|
|
10051
10039
|
obj[META_FIELD] = meta;
|
@@ -10094,7 +10082,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
|
|
10094
10082
|
var parent = void 0;
|
10095
10083
|
|
10096
10084
|
// remove this code, in-favor of explicit parent
|
10097
|
-
if (maybeMeta !== undefined
|
10085
|
+
if (maybeMeta !== undefined) {
|
10098
10086
|
if (maybeMeta.source === obj) {
|
10099
10087
|
return maybeMeta;
|
10100
10088
|
}
|
@@ -17154,12 +17142,12 @@ enifed('ember/features', ['exports', 'ember-environment', 'ember-utils'], functi
|
|
17154
17142
|
enifed("ember/version", ["exports"], function (exports) {
|
17155
17143
|
"use strict";
|
17156
17144
|
|
17157
|
-
exports.default = "2.15.0-beta.
|
17145
|
+
exports.default = "2.15.0-beta.2";
|
17158
17146
|
});
|
17159
17147
|
enifed("handlebars", ["exports"], function (exports) {
|
17160
17148
|
"use strict";
|
17161
17149
|
|
17162
|
-
|
17150
|
+
// File ignored in coverage tests via setting in .istanbul.yml
|
17163
17151
|
/* Jison generated parser */
|
17164
17152
|
|
17165
17153
|
var handlebars = function () {
|
@@ -17924,7 +17912,10 @@ enifed("handlebars", ["exports"], function (exports) {
|
|
17924
17912
|
// Work around issue under safari where we can't directly set the column value
|
17925
17913
|
/* istanbul ignore next */
|
17926
17914
|
if (Object.defineProperty) {
|
17927
|
-
Object.defineProperty(this, 'column', {
|
17915
|
+
Object.defineProperty(this, 'column', {
|
17916
|
+
value: column,
|
17917
|
+
enumerable: true
|
17918
|
+
});
|
17928
17919
|
} else {
|
17929
17920
|
this.column = column;
|
17930
17921
|
}
|