cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/8] git commit: Native Tizen implementation of SplashScreen API.
Date Tue, 28 Jan 2014 01:00:52 GMT
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 <salvatore@iovene.com>
Authored: Tue Nov 19 12:55:35 2013 +0200
Committer: Salvatore Iovene <salvatore@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;
         }
     }
 };


Mime
View raw message