I am trying to access the event in a function that is not in the fullCalendar, I have a context menu that you can right click and choose DeleteEvent and it passes the target to the function:
var $target = $(e.target);
DeleteEvent($target);
When I use the debugger in chrome I can see the object I need but I can't figure out how to get to it because the numbers at the end of jquery could probably change.
So how do I write this to work everytime?
$target.context.offsetParent.jQuery224054666921681718872.fcSeg.event
I tried:
$target.context.offsetParent.find('fcSeg').event
$target.context.offsetParent.jQuery().fcSeg.event
$target.offsetParent().find('fcSeg').event
$target.offsetParent().closest('fcSeg').event
etc. Just grasping at straws here.