use v0.10 compatible promises

This commit is contained in:
AJ ONeal 2015-04-01 16:14:13 +00:00
parent 8797e3fe4d
commit 4e984d46de
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ function eagerLoad() {
, 'recase'
].forEach(function (name, i) {
promise = promise.then(function () {
return new Promise(function (resolve, reject) {
return new PromiseA(function (resolve, reject) {
setTimeout(function () {
require(name);
resolve();
@ -61,7 +61,7 @@ function eagerLoad() {
}
].forEach(function (fn) {
promise = promise.then(function (thing) {
return new Promise(function (resolve) {
return new PromiseA(function (resolve) {
setTimeout(function () {
resolve(fn(thing));
}, 4);