Skip to content

Commit 9acf107

Browse files
committed
Expose functions to make Parse.Promise fully A+ compliant
1 parent da65b59 commit 9acf107

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/ParsePromise.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10-
// We may want to expose this value at a later time, so that Promises/A+ style
11-
// can be employed instead
1210
var isPromisesAPlusCompliant = false;
1311

1412
/**
@@ -420,4 +418,12 @@ export default class ParsePromise {
420418
static isPromisesAPlusCompliant() {
421419
return isPromisesAPlusCompliant;
422420
}
421+
422+
static enableAPlusCompliant() {
423+
isPromisesAPlusCompliant = true;
424+
}
425+
426+
static disableAPlusCompliant() {
427+
isPromisesAPlusCompliant = false;
428+
}
423429
}

0 commit comments

Comments
 (0)