'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
            Priority: Minor


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.

Reply via email to