cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [15/40] git commit: Incorrect js for statusbar plugin
Date Mon, 04 Nov 2013 22:05:29 GMT
Incorrect js for statusbar plugin


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugins/commit/5caf73b1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugins/tree/5caf73b1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugins/diff/5caf73b1

Branch: refs/heads/master
Commit: 5caf73b1828e3b010689572b274cdbe7017930c1
Parents: 86fb3af
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

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


http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5caf73b1/statusbar/www/statusbar.js
----------------------------------------------------------------------
diff --git a/statusbar/www/statusbar.js b/statusbar/www/statusbar.js
index 4f1886a..8c461bd 100644
--- a/statusbar/www/statusbar.js
+++ b/statusbar/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