Removed depreciated code
diff --git a/cordova-js-src/platform.js b/cordova-js-src/platform.js
index 78c654a..e736a3c 100644
--- a/cordova-js-src/platform.js
+++ b/cordova-js-src/platform.js
@@ -24,8 +24,7 @@
bootstrap: function() {
var channel = require('cordova/channel');
var isLegacy = /(?:web|hpw)OS\/(\d+)/.test(navigator.userAgent);
- var webOSjsLib = (window.webOS!==undefined);
- if(!webOSjsLib && window.PalmSystem && window.PalmSystem.stageReady && isLegacy) {
+ if(isLegacy && window.PalmSystem && window.PalmSystem.stageReady) {
window.PalmSystem.stageReady();
}
@@ -51,21 +50,6 @@
channel.onPause.fire();
};
}
-
- if(isLegacy && !webOSjsLib) {
- var lp = JSON.parse(PalmSystem.launchParams || "{}") || {};
- window.cordova.fireDocumentEvent("webOSLaunch", {type:"webOSLaunch", detail:lp});
- // LunaSysMgr calls this whenever an app is "launched;"
- window.Mojo.relaunch = function(e) {
- var lp = JSON.parse(PalmSystem.launchParams || "{}") || {};
- if(lp['palm-command'] && lp['palm-command'] == 'open-app-menu') {
- window.cordova.fireDocumentEvent("menubutton");
- return true;
- } else {
- window.cordova.fireDocumentEvent("webOSRelaunch", {type:"webOSRelaunch", detail:lp});
- }
- };
- }
document.addEventListener("keydown", function(e) {
// back gesture/button varies by version and build
if(e.keyCode == 27 || e.keyIdentifier == "U+1200001" ||