You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/01/28 02:00:52 UTC
[2/8] git commit: Native Tizen implementation of SplashScreen API.
Native Tizen implementation of SplashScreen API.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/3a1810ba
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/3a1810ba
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/3a1810ba
Branch: refs/heads/master
Commit: 3a1810baa51b64dee93332365c7cb5592f0baf6e
Parents: 9ebd08f
Author: Salvatore Iovene <sa...@iovene.com>
Authored: Tue Nov 19 12:55:35 2013 +0200
Committer: Salvatore Iovene <sa...@iovene.com>
Committed: Tue Nov 19 12:55:35 2013 +0200
----------------------------------------------------------------------
src/tizen/SplashScreenProxy.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/3a1810ba/src/tizen/SplashScreenProxy.js
----------------------------------------------------------------------
diff --git a/src/tizen/SplashScreenProxy.js b/src/tizen/SplashScreenProxy.js
index 8d630f2..cd76a82 100644
--- a/src/tizen/SplashScreenProxy.js
+++ b/src/tizen/SplashScreenProxy.js
@@ -2,11 +2,15 @@ var exec = require('cordova/exec');
module.exports = {
splashscreen: {
+ win: null,
+
show = function() {
- exec(null, null, "SplashScreen", "show", []);
+ win= window.open('splashscreen.html');
},
+
hide = function() {
- exec(null, null, "SplashScreen", "hide", []);
+ win.close();
+ win = null;
}
}
};