use v0.10 compatible promises
This commit is contained in:
parent
8797e3fe4d
commit
4e984d46de
|
@ -33,7 +33,7 @@ function eagerLoad() {
|
||||||
, 'recase'
|
, 'recase'
|
||||||
].forEach(function (name, i) {
|
].forEach(function (name, i) {
|
||||||
promise = promise.then(function () {
|
promise = promise.then(function () {
|
||||||
return new Promise(function (resolve, reject) {
|
return new PromiseA(function (resolve, reject) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
require(name);
|
require(name);
|
||||||
resolve();
|
resolve();
|
||||||
|
@ -61,7 +61,7 @@ function eagerLoad() {
|
||||||
}
|
}
|
||||||
].forEach(function (fn) {
|
].forEach(function (fn) {
|
||||||
promise = promise.then(function (thing) {
|
promise = promise.then(function (thing) {
|
||||||
return new Promise(function (resolve) {
|
return new PromiseA(function (resolve) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
resolve(fn(thing));
|
resolve(fn(thing));
|
||||||
}, 4);
|
}, 4);
|
||||||
|
|
Loading…
Reference in New Issue