Merge pull request #4 from trave7er/master

add input callback to callback stack
This commit is contained in:
Aakash N S 2015-11-19 05:29:54 +05:30
commit faeb1f6bc6
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ class DialogAndroid {
finalOptions.input = Object.assign({}, finalOptions.input); finalOptions.input = Object.assign({}, finalOptions.input);
var inputCallback = finalOptions.input.callback || (x => console.log(x)); var inputCallback = finalOptions.input.callback || (x => console.log(x));
finalOptions.input.callback = true; finalOptions.input.callback = true;
callbacks['input'] = inputCallback;
} }
// Parse the result form multiple choice dialog // Parse the result form multiple choice dialog