@@ -11,6 +11,10 @@ var Promise = require('bluebird/js/main/promise')() // use this syntax to be abl
...
@@ -11,6 +11,10 @@ var Promise = require('bluebird/js/main/promise')() // use this syntax to be abl
deprecatedSeen[message]=true;
deprecatedSeen[message]=true;
};
};
varcls=require('continuation-local-storage')
,ns=cls.createNamespace('sequelize');
/**
/**
* A slightly modified version of bluebird promises. This means that, on top of the methods below, you can also call all the methods listed on the link below.
* A slightly modified version of bluebird promises. This means that, on top of the methods below, you can also call all the methods listed on the link below.
*
*
...
@@ -45,6 +49,15 @@ for (var method in Promise) {
...
@@ -45,6 +49,15 @@ for (var method in Promise) {
}
}
}
}
// var bluebird_addcb = Promise.prototype._addCallbacks;
// Promise.prototype._addCallbacks = function (fulfill, reject, progress, promise, receiver) {
// if (typeof fulfill === 'function') fulfill = ns.bind(fulfill);
// if (typeof reject === 'function') reject = ns.bind(reject);
// if (typeof progress === 'function') progress = ns.bind(progress);