From 2e15c9c025da731a0ac279e4c7559b470053a9b5 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Sun, 6 Oct 2013 00:39:36 -0700 Subject: [PATCH] Incorrect js for statusbar plugin --- www/statusbar.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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;