We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da65b59 commit 9acf107Copy full SHA for 9acf107
src/ParsePromise.js
@@ -7,8 +7,6 @@
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*/
9
10
-// We may want to expose this value at a later time, so that Promises/A+ style
11
-// can be employed instead
12
var isPromisesAPlusCompliant = false;
13
14
/**
@@ -420,4 +418,12 @@ export default class ParsePromise {
420
418
static isPromisesAPlusCompliant() {
421
419
return isPromisesAPlusCompliant;
422
}
+
+ static enableAPlusCompliant() {
423
+ isPromisesAPlusCompliant = true;
424
+ }
425
426
+ static disableAPlusCompliant() {
427
+ isPromisesAPlusCompliant = false;
428
429
0 commit comments