functions in event functions not working more than once
See the sample code below... When a cell is clicked repeatedly, the alert in the my_add_selection function only runs once, then it will never execute again even though the alert('hi') executes everytime. What am I doing wrong? It worked fine in 2.0.
obj.onCellClicked = function(event, col, row) {
alert("hi");
my_add_selection(row, col);
};
function my_add_selection (row, col) {
alert('my cell = ' + row + ', ' + col);
}
obj.onCellClicked = function(event, col, row) {
alert("hi");
my_add_selection(row, col);
};
function my_add_selection (row, col) {
alert('my cell = ' + row + ', ' + col);
}
Jeff
April 4,