I use the following code snippet to invoke the click event of a document:
$(document).bind("click", $.proxy(proxy._cellClickHandler, proxy));
_cellClickHandler: function (e) {
var $target = $(e.target),
row = $target.closest('tr'),
proxy = this,
args = {},
currentData,
index;
}
Clicking it the first time does not fire the event. On the second click it invokes correctly. How to resolve this problem?