kill document event

kill document event

Hello

I search a lot but don't find what I want...
I create a plugin (table built dynamically).
I need to catch some event, but like my table is not here on load event, I use 

  1.      $(document).on("click", '.Delete', function () {...});

When I use my plugin in ModalPopup, I need to destroy table, cause I need to recreate table after.

  1.     $r.children().remove();

Until here all is good.

But When I recreate table and click on delete button I see my event play 2 times... I forget to kill event link to my table. I see lot of exemple with $(selector).off or .unbind... but never on document.

Someone can help me?

If debugging is the art of removing bugs ... then program is the art of creating