Closed Bug 720981 Opened 14 years ago Closed 14 years ago

Remove element.iQEventData when it's empty

Categories

(Firefox Graveyard :: Panorama, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 12

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

Attached patch patch — — Splinter Review
For bug 658738, I'm investigating if we can treat it as a failure if tests leak global variables, i.e. add new properties on the window object. One of the few remaining unexpected failures is this: TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/components/tabview/test/browser_tabview_bug580412.js | leaked window property: iQEventData This is from one of these event listeners: http://mxr.mozilla.org/mozilla-central/search?string=iQ%28gWindow%29
Attachment #591409 - Flags: review?(ttaubert)
Comment on attachment 591409 [details] [diff] [review] patch Review of attachment 591409 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, we totally should clean up after ourselves here. ::: browser/components/tabview/iq.js @@ +775,2 @@ > this.unbind(type, elem.iQEventData[type][0].original); > + }.bind(this)); Nit: I think it's better to use forEach's second parameter instead of .bind() here.
Attachment #591409 - Flags: review?(ttaubert) → review+
Blocks: 720985
Target Milestone: --- → Firefox 12
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: