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 {
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);
}
});
};