Merge pull request #4729 from Snuffleupagus/remove-LegacyPromise
Remove LegacyPromise
This commit is contained in:
commit
70da61fa01
@ -933,24 +933,6 @@ function isPDFFunction(v) {
|
|||||||
return fnDict.has('FunctionType');
|
return fnDict.has('FunctionType');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Legacy support for PDFJS Promise implementation.
|
|
||||||
* TODO remove eventually
|
|
||||||
* @ignore
|
|
||||||
*/
|
|
||||||
var LegacyPromise = PDFJS.LegacyPromise = (function LegacyPromiseClosure() {
|
|
||||||
return function LegacyPromise() {
|
|
||||||
var resolve, reject;
|
|
||||||
var promise = new Promise(function (resolve_, reject_) {
|
|
||||||
resolve = resolve_;
|
|
||||||
reject = reject_;
|
|
||||||
});
|
|
||||||
promise.resolve = resolve;
|
|
||||||
promise.reject = reject;
|
|
||||||
return promise;
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Promise Capability object.
|
* Promise Capability object.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user