diff --git a/www/statusbar.js b/www/statusbar.js index 4f1886a..8c461bd 100644 --- a/www/statusbar.js +++ b/www/statusbar.js @@ -19,13 +19,9 @@ * */ -// var argscheck = require('cordova/argscheck'), -// utils = require('cordova/utils'), -// exec = require('cordova/exec'); - -(function() { - -var exec = cordova.require('cordova/exec') +var argscheck = require('cordova/argscheck'), + utils = require('cordova/utils'), + exec = require('cordova/exec'); var StatusBar = function() { }; @@ -50,8 +46,7 @@ StatusBar.styleBlackOpaque = function() { exec(null, null, "StatusBar", "styleBlackOpaque", []); }; +// TODO: StatusBar.isVisible = true; -window.StatusBar = StatusBar; - -})(); \ No newline at end of file +module.exports = StatusBar;