|
@@ -1,24 +0,0 @@
|
|
|
-"use strict";
|
|
|
-
|
|
|
-Object.defineProperty(exports, "__esModule", {
|
|
|
- value: true
|
|
|
-});
|
|
|
-
|
|
|
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
-
|
|
|
-/*
|
|
|
- * Deferred pattern built on top of Promise.
|
|
|
- */
|
|
|
-
|
|
|
-var Deferred = function Deferred() {
|
|
|
- var _this = this;
|
|
|
-
|
|
|
- _classCallCheck(this, Deferred);
|
|
|
-
|
|
|
- this.promise = new Promise(function (resolve, reject) {
|
|
|
- _this.resolve = resolve;
|
|
|
- _this.reject = reject;
|
|
|
- });
|
|
|
-};
|
|
|
-
|
|
|
-exports.default = Deferred;
|