Revert "Replace rest of defer usages using small shim. Add homebrew promise utils"
This reverts commit 6850c147
This commit is contained in:
parent
f9d6ed63f0
commit
7a512f7299
4 changed files with 4 additions and 53 deletions
|
@ -24,7 +24,6 @@ import sdk from './index';
|
|||
import dis from './dispatcher';
|
||||
import { _t } from './languageHandler';
|
||||
import Promise from "bluebird";
|
||||
import {defer} from "./utils/promise";
|
||||
|
||||
const DIALOG_CONTAINER_ID = "mx_Dialog_Container";
|
||||
const STATIC_DIALOG_CONTAINER_ID = "mx_Dialog_StaticContainer";
|
||||
|
@ -203,7 +202,7 @@ class ModalManager {
|
|||
}
|
||||
|
||||
_getCloseFn(modal, props) {
|
||||
const deferred = defer();
|
||||
const deferred = Promise.defer();
|
||||
return [(...args) => {
|
||||
deferred.resolve(args);
|
||||
if (props && props.onFinished) props.onFinished.apply(null, args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue