Proxy: Correct structure, and only ever create one splashscreen window.
This commit is contained in:
parent
8aa0b24481
commit
8dc057b796
@ -1,14 +1,16 @@
|
|||||||
var exec = require('cordova/exec');
|
( function() {
|
||||||
|
|
||||||
|
win = null;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
splashscreen: {
|
show: function() {
|
||||||
win: null,
|
if ( win === null ) {
|
||||||
|
win = window.open('splashscreen.html');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
show: function() {
|
hide: function() {
|
||||||
win= window.open('splashscreen.html');
|
if ( win !== null ) {
|
||||||
},
|
|
||||||
|
|
||||||
hide: function() {
|
|
||||||
win.close();
|
win.close();
|
||||||
win = null;
|
win = null;
|
||||||
}
|
}
|
||||||
@ -16,3 +18,5 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
require("cordova/tizen/commandProxy").add("SplashScreen", module.exports);
|
require("cordova/tizen/commandProxy").add("SplashScreen", module.exports);
|
||||||
|
|
||||||
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user