An example is giving me trouble

An example is giving me trouble

Hello everybody, I´ve got a little problem. 

There's an example in: swipe-list.html that I'm taking by reference to delete items in a list.

The problem is in 
$( "#confirm #yes" ).on( "click", function() {...
The sentence listitem.remove(), is executing as many times as items I've already deleted. 

This can be view using breakpoints in lines 55, 63 and 72.

How can I do to execute that just one time?

TIA James