Merged code for imhotep: Cleaner way for handling splashscreens.

See original commit: https://github.com/imhotep/phonegap-android/commit/1761cbb3dca603dbca1925fa277bba4dce3ec75c
This commit is contained in:
Bryce Curtis
2010-11-11 15:59:35 -06:00
parent 49341356d7
commit 5ffe5fa3c5
3 changed files with 18 additions and 64 deletions
-13
View File
@@ -1,13 +0,0 @@
/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
*/
PhoneGap.addConstructor(function() {
if (typeof navigator.splashScreen == "undefined") {
navigator.splashScreen = SplashScreen; // SplashScreen object come from native side through addJavaScriptInterface
}
});