binding "click" event to html()'ed content element causes spurious events
|Reported by:||dennisj||Owned by:||brandon|
A self-contained minimized test case of the problem can be found here: http://pastebin.com/f6990228d
This page displays the text "STATE1" and clicking on it changes it to "STATE2". Clicking on that however switches the text back to "STATE1" (which is correct) and then immediately back to "STATE2" which it shouldn't.
The problem is that after initState1() is called a click event is occuring that shouldn't which causes the immediate call of initState2() again.
What I would expect is to get the correct behavior in both cases.