-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Didn't realize bugs are here now.
Copy of bug #120 from http://code.google.com/p/cnetjavascript/issues/detail?id=120
HTML: http://code.google.com/p/cnetjavascript/issues/attachmentText?id=120&aid=-770559181411270546&name=test.html&token=e2f07b2468ea87d4c081c6d2bf885982
What steps will reproduce the problem?
- Load the attached HTML file. You should see 'hello world'.
- Click on the document.
- An alert saying 'destroy' should show up.
- 'hello world' should disappear and the StickyWin destroyed.
- Click on the document again.
What is the expected output? What do you see instead?
After the StickyWin is destroyed, clicking on the document should no longer trigger the alert. Instead, the event listeners stay around and are not removed.
Please provide any additional information below.
To fix this, a call to "this.attach( false );" can be added to the #destroy function of StickyWin before the event is fired. This will remove the event listeners from the document.
Metadata
Metadata
Assignees
Labels
No labels