dialog component

This commit is contained in:
cookfront
2017-02-16 17:15:35 +08:00
parent c45822b400
commit 3bed02995d
2 changed files with 5 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ const defaultCallback = action => {
}
};
var initInstance = () => {
const initInstance = () => {
instance = new DialogConstructor({
el: document.createElement('div')
});
@@ -32,7 +32,7 @@ var initInstance = () => {
instance.callback = defaultCallback;
};
var showNextDialog = () => {
const showNextDialog = () => {
if (!instance) {
initInstance();
}