send callbacks on dismissViewControllerAnimated completion
send callbacks on dismissViewControllerAnimated completion

Changed barcodeScanDone method to use a block, so it sends the
callbacks to the javascript side when the barcode scanner view
controller has been completely dismissed.
It was causing problems with the dialogs plugin if you used a dialog on
the success or error callback

Keyoniq/phonegap-plugin-barcodescanner,sovanta/phonegap-plugin-barcodescanner-custom-ui,sovanta/phonegap-plugin-barcodescanner-custom-ui,Keyoniq/phonegap-plugin-barcodescanner,sovanta/phonegap-plugin-barcodescanner-custom-ui,Keyoniq/phonegap-plugin-barcodescanner,Keyoniq/phonegap-plugin-barcodescanner,sovanta/phonegap-plugin-barcodescanner-custom-ui,Keyoniq/phonegap-plugin-barcodescanner,sovanta/phonegap-plugin-barcodescanner-custom-ui