.trigger() in Safari

.trigger() in Safari

Hi All,

I've written a jQuery function that hooks up an event on mouseenter for a span. It does this by using trigger to fire a click event (which already exists separately and works).

This seems to work fine in IE, and in Chrome, but refuses to work in Safari (i've had it reported in Safari on Mac, but I'm testing Safari on Windows) with jQuery 1.8.2.

Is this just functionality that doesn't work on Safari?

This is my code:
  1. var items = $('*[data-ShowMenuOnHover=true] .rbSplitRight, *[data-ShowMenuOnHover=true][data-ShowMenuOnDefaultClick=true]');
    items.mouseenter(function (event) { $(event.target).trigger('click'); });