You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/08/26 21:45:57 UTC

[jira] Resolved: (WICKET-2854) 'this.document' is null or not an object after quickly opening and closing a modal window (modal.js)

     [ https://issues.apache.org/jira/browse/WICKET-2854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2854.
-----------------------------------

         Assignee: Igor Vaynberg
    Fix Version/s: 1.4.11
                   1.5-M2
       Resolution: Fixed

> 'this.document' is null or not an object after quickly opening and closing a modal window (modal.js)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2854
>                 URL: https://issues.apache.org/jira/browse/WICKET-2854
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>         Environment: IE 7 and maybe more IE versions
>            Reporter: Barrett Snyder
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4.11, 1.5-M2
>
>
> When opening a modal window that allows closing by clicking anywhere outside of the window it will sometimes give a javascript error stating "'this.document' is null or not an object" on line 915 or 916 of modal.js which is within the disableTabs function. This is a timing issue due to using setTimeout to hookup some modal preparation functions. The problem is that the modal is closing prior to these timeouts firing and then when the timeouts fire the document is null. So this.document returns null. A possible fix might be to clear the timeouts on window close.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.