incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject [3/3] js commit: Adding SplashScreen plugin
Date Mon, 07 May 2012 16:11:33 GMT
Adding SplashScreen plugin


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/06c3a476
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/06c3a476
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/06c3a476

Branch: refs/heads/master
Commit: 06c3a476e3f8c28a4364bbe56b0453d7b221377f
Parents: 4c1f4dc
Author: macdonst <simon.macdonald@gmail.com>
Authored: Wed Apr 25 13:38:25 2012 -0400
Committer: macdonst <simon.macdonald@gmail.com>
Committed: Wed Apr 25 13:38:25 2012 -0400

----------------------------------------------------------------------
 lib/common/common.js              |    3 +++
 lib/common/plugin/splashscreen.js |    9 +++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/06c3a476/lib/common/common.js
----------------------------------------------------------------------
diff --git a/lib/common/common.js b/lib/common/common.js
index e07bf03..7480ed9 100644
--- a/lib/common/common.js
+++ b/lib/common/common.js
@@ -44,6 +44,9 @@ module.exports = {
                             path: 'cordova/plugin/network'
                         }
                     }
+                },
+                splashscreen: {
+                    path: 'cordova/plugin/splashscreen'
                 }
             }
         },

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/06c3a476/lib/common/plugin/splashscreen.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/splashscreen.js b/lib/common/plugin/splashscreen.js
new file mode 100644
index 0000000..9de7c75
--- /dev/null
+++ b/lib/common/plugin/splashscreen.js
@@ -0,0 +1,9 @@
+var exec = require('cordova/exec');
+
+var splashscreen = {
+    hide:function() {
+        exec(null, null, "SplashScreen", "hide", []);
+    }
+};
+
+module.exports = splashscreen;
\ No newline at end of file


Mime
View raw message