in partnership with mediatemple

Ticket #819 (closed defect: invalid)

Opened 3 months ago

Last modified 4 days ago

$pick is not defined on window close

Reported by: terje@… Owned by:
Type: defect Priority: minor
Milestone: Mootools version 1.2 Component: Core
Keywords: Cc:

Description

Firebug reports that $pick is not defined if a window that has fired an Ajax request is closed before the Ajax request completes. Test case here:

http://tjervaag.com/popup_error3/

When the popup opens, click the link. That triggers an ajax request with a slow (3 seconds) response time. While that's churning, close the window and watch the firebug console: '$pick is not defined'.

Change History

Changed 3 months ago by ttjervaag

Uploaded an updated version of the demo to show that the problem still exists in Mootools 1.2 b2.

http://tjervaag.com/popup_error-1.2/

However, the error now says $defined is not defined.

Changed 2 months ago by kamicane

  • status changed from new to closed
  • resolution set to fixed

This should be fixed, as we have a much cleaner garbage collector now. Reopen if its not.

Changed 2 months ago by ttjervaag

  • status changed from closed to reopened
  • resolution deleted

The problem is still in the trunk as of time of writing this:

http://tjervaag.com/popup_error_trunk

Reopening ticket.

Changed 4 days ago by tomocchino

  • status changed from reopened to closed
  • resolution set to invalid

In your popup example, you should cancel the request from running if the window is closed before it completes. There is no way for us to guarantee that MooTools methods will be available inside the popup window after your request is completed.

Note: See TracTickets for help on using tickets.