getting a data id from button click event with on()

getting a data id from button click event with on()

I have had to amend some code to grab a data-id from a button click as the button click event now uses on() due to copies of the same button being added dynamically so I now have:
  1.  $(document).on("click", ".like", function (evt) {
  2.             evt.preventDefault();
  3.             LikeComment($(this).data("cid"));
  4.         });

My problem with this is that $(this).data("cid") is now undefined.

How can I get at this using the new code above?