Skip to main content

Bug Tracker

Side navigation

#12055 closed bug (duplicate)

Opened July 11, 2012 06:44AM UTC

Closed July 11, 2012 02:28PM UTC

Last modified July 11, 2012 02:28PM UTC

Memory Leak in IE8 when using custom events

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

I'm seeing a memory leak in IE8/7 when binding custom events to a Jquery DOM object which is referenced in a JS object. IE9 seems fine. Using a standard event ('click') works fine as well.

Full code at

var testField = function ($in) {
  var $input = $in;
  var onCustom = function () { }

  this.Test = function () {
    $input.on('custom', onCustom);

var $input = $("<span>" + Math.random() + "</span>").appendTo($row);
new testField($input).Test();

In the JSFiddle I also added clean-up code as a solution maybe - but it doesn't help. Also storing all instances of "testField" somewhere and then later deleting them (using "delete" command) did not help.

Any ideas, maybe some insights on custom events and special treatment in IE8?

Attachments (0)
Change History (4)

Changed July 11, 2012 01:20PM UTC by dmethvin comment:1

owner: →
status: newpending

Can you try with 1.8b2 and see if the problem has been fixed?

Changed July 11, 2012 02:23PM UTC by comment:2

status: pendingnew

That fixes it! Awesome!

Changed July 11, 2012 02:28PM UTC by dmethvin comment:3

resolution: → duplicate
status: newclosed


Changed July 11, 2012 02:28PM UTC by dmethvin comment:4

Duplicate of #7054.