cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [02/35] git commit: Incorrect js for statusbar plugin
Date Thu, 13 Mar 2014 19:58:31 GMT
Incorrect js for statusbar plugin



Project: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/commit/2e15c9c0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/tree/2e15c9c0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/diff/2e15c9c0

Branch: refs/heads/master
Commit: 2e15c9c025da731a0ac279e4c7559b470053a9b5
Parents: 512a138
Author: Shazron Abdullah <shazron@apache.org>
Authored: Sun Oct 6 00:39:36 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Sun Oct 6 00:39:36 2013 -0700

----------------------------------------------------------------------
 www/statusbar.js | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-statusbar/blob/2e15c9c0/www/statusbar.js
----------------------------------------------------------------------
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;


Mime
View raw message