fix: dialogs.select() arguments' parsing

This commit is contained in:
hyb1996
2017-12-07 22:46:16 +08:00
parent be023ceefe
commit e6811c2f5a
2 changed files with 4 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ module.exports = function(__runtime__, scope){
}
return rtDialogs().select(title, items, callback ? callback : null);
}
return rtDialogs().select(title, [].slice.call(arguments, 1));
return rtDialogs().select(title, [].slice.call(arguments, 1), null);
}
dialogs.singleChoice = function(title, items, index, callback){