You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/05/07 18:11:33 UTC
[3/3] js commit: Adding SplashScreen plugin
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 <si...@gmail.com>
Authored: Wed Apr 25 13:38:25 2012 -0400
Committer: macdonst <si...@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