I have the following code:
function someMethod() { $(obj).click(function {}); }
someMethod is called twice and thus click event is binded
jQuery makes calling some function possible only once pretty easy:
function someMethod() { $(obj).click(function() {}); this.someMethod = $.noop; }