ios: Use a persistent callbackId instead of calling sendJs

This commit is contained in:
Andrew Grieve
2014-07-14 22:55:04 -04:00
parent f0031ca2b4
commit be8a3e5947
3 changed files with 39 additions and 12 deletions
+7 -1
View File
@@ -97,7 +97,13 @@ var StatusBar = {
// prime it
exec(function (res) {
StatusBar.isVisible = res;
if (typeof res == 'object') {
if (res.type == 'tap') {
cordova.fireWindowEvent('statusTap');
}
} else {
StatusBar.isVisible = res;
}
}, null, "StatusBar", "_ready", []);
module.exports = StatusBar;