Replace deprecated debug.log with console.log.

This commit is contained in:
Bryce Curtis 2010-11-11 22:03:12 -06:00
parent 1428ac5ed5
commit dce0d93df8

View File

@ -157,11 +157,7 @@ PhoneGap.addConstructor = function(func) {
try { try {
func(); func();
} catch(e) { } catch(e) {
if (typeof(debug['log']) == 'function') { console.log("Failed to run constructor: " + e);
debug.log("Failed to run constructor: " + debug.processMessage(e));
} else {
alert("Failed to run constructor: " + e.message);
}
} }
}); });
}; };