I'm obviously being stupid but, for the life of me, I can't figure out why my method ResetDB can not call the method InitializeDB when the user clicks the ResetDB button (the ResetDB method is called just fine from the button click but it's all downhill from there):
var md: ManageCustOrderDatabase;
$(function () {
md = new ManageCustOrderDatabase();
$("#ResetDb").click(md.ResetDB);
});
class ManageCustOrderDatabase {
public ResetDB() {
alert("A");
this.InitializeDB();
alert("C");
}
public InitializeDB() {
alert("q");
}
}