How to make jquery function run only 1 time?

How to make jquery function run only 1 time?

I have the code below:

jQuery('.teste').hover(function()
{
jQuery('.modalcart').trigger('click');
}
);

How do I get the declared function is executed only once?