I've got the following function on my client-side db:
dropTable = function (a, tbl) {
a.executeSql('Drop Table If Exists ' + tbl + ';', [],
function(a, b){
console.log('Table "' + tbl + '" dropped.');
}
, errorHandler);
};
What do I have to do to show the console message only when a table is dropped? It currently shows on every function call.