Cleaned up Javascript code

This commit is contained in:
Aakash N S 2015-11-02 00:00:21 +05:30
parent 55d84b9408
commit 431fa3acf7

View File

@ -35,6 +35,7 @@ class DialogAndroid {
error: (err, op) => console.error(err, op),
}
// Remove callbacks from the options, and store them separately
callbackNames.forEach(cb => {
if (cb in finalOptions) {
callbacks[cb] = finalOptions[cb];