Loading ...
Sorry, an error occurred while loading the content.

Re: Dialog mask not cleaning up memory leak

Expand Messages
  • jamoville
    Like a charm - The fix works great. Thanks for the help ... see
    Message 1 of 6 , Mar 3, 2007
    • 0 Attachment
      Like a charm - The fix works great. Thanks for the help

      --- In ydn-javascript@yahoogroups.com, Todd Kloots <kloots@...> wrote:
      >
      > The following file demonstrates how to apply a patch that fixes the
      reported memory leaks for Dialog and Panel in IE:
      >
      >
      >
      > http://yuiblog.com/sandbox/yui/v220/examples/container/example03.php
      >
      >
      >
      > - Todd
      >
      >
      > ----- Original Message ----
      > From: jamoville <john.hutchinson@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Wednesday, February 28, 2007 9:43:11 AM
      > Subject: [ydn-javascript] Dialog mask not cleaning up memory leak
      >
      > I found a post that indicated a memory leak happens when a mask was
      > used with a dialog. I also found that there was a patch for this
      > but I'm working with the latest code and I don't think this is
      > working. In the container.js file there is a destroy : function()
      > for a Module that should be called by the
      > YAHOO.widget.Overlay.superclass.destroy.call(this); method. This
      > will fire the destroyEvent which will clean up the mask in the
      > following method
      > YAHOO.widget.Panel.prototype.removeMask
      >
      > None of this appears to ever happen. In order for this chain of
      > events to happen the
      > YAHOO.widget.Overlay.prototype.destroy
      > method needs to be called but I don't see that ever happening. I
      > even went so far as putting an alert box in these methods to make
      > sure I wasn't missing the call but none of this is executing. I
      see
      > this as a big memory leak in my application. This seems like a
      > pretty bad thing - any ideas on why this clean up code isn't
      > happening?
      >
      > Thanks
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.