hyb1996
2019-01-22 10:14:49 +08:00
parent 054b1fe42a
commit e28adc4931

View File

@@ -155,7 +155,7 @@ module.exports = function(__runtime__, scope){
builder.input(wrapNonNullString(properties.inputHint), wrapNonNullString(properties.inputPrefill), builder.input(wrapNonNullString(properties.inputHint), wrapNonNullString(properties.inputPrefill),
function(dialog, input){ function(dialog, input){
input = input.toString(); input = input.toString();
builder.emit("input_change", dialog, input); dialog.emit("input_change", dialog, input);
}) })
.alwaysCallInputCallback(); .alwaysCallInputCallback();
} }
@@ -191,7 +191,7 @@ module.exports = function(__runtime__, scope){
if(properties.checkBoxPrompt != undefined || properties.checkBoxChecked != undefined){ if(properties.checkBoxPrompt != undefined || properties.checkBoxChecked != undefined){
builder.checkBoxPrompt(wrapNonNullString(properties.checkBoxPrompt), !!properties.checkBoxChecked, builder.checkBoxPrompt(wrapNonNullString(properties.checkBoxPrompt), !!properties.checkBoxChecked,
function(view, checked){ function(view, checked){
builder.emit("check", checked, builder.getDialog()); builder.getDialog().emit("check", checked, builder.getDialog());
}); });
} }
} }