From dce0d93df81a9faeb94d0cd424b49826eb0210d7 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Thu, 11 Nov 2010 22:03:12 -0600 Subject: [PATCH] Replace deprecated debug.log with console.log. --- framework/assets/js/phonegap.js.base | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework/assets/js/phonegap.js.base b/framework/assets/js/phonegap.js.base index 4f76cb24..47c2670e 100755 --- a/framework/assets/js/phonegap.js.base +++ b/framework/assets/js/phonegap.js.base @@ -157,11 +157,7 @@ PhoneGap.addConstructor = function(func) { try { func(); } catch(e) { - if (typeof(debug['log']) == 'function') { - debug.log("Failed to run constructor: " + debug.processMessage(e)); - } else { - alert("Failed to run constructor: " + e.message); - } + console.log("Failed to run constructor: " + e); } }); };