actionsheet unit test

This commit is contained in:
cookfront
2017-04-12 12:01:44 +08:00
parent b207efe729
commit 7c75f48eaa
12 changed files with 130 additions and 36 deletions

View File

@@ -10,7 +10,7 @@ let dialogQueue = [];
const defaultCallback = action => {
if (currentDialog) {
let callback = currentDialog.callback;
const callback = currentDialog.callback;
if (typeof callback === 'function') {
callback(action);
@@ -40,9 +40,9 @@ const showNextDialog = () => {
if (!instance.value && dialogQueue.length > 0) {
currentDialog = dialogQueue.shift();
let options = currentDialog.options;
const options = currentDialog.options;
for (let prop in options) {
for (const prop in options) {
if (options.hasOwnProperty(prop)) {
instance[prop] = options[prop];
}