Can you describe what you want to happen? For example, "When an li element is double-clicked, it should _____. If it is single-clicked the first time it should ___ and the second time it should _____. If it is single-clicked but then double-clicked it should ____."
Also, remember that a click event is always delivered before a double- click. (It doesn't know you meant to double click until it's already delivered the click.)