Ext version tested:
Ext 3.2 rev 2


Adapter used:
ext

css used:
only default ext-all.css



Browser versions tested against:
FF3 (firebug 1.5.4 installed)


Operating System:
WinXP Pro


Description:
Describe the problem in greater detail here, summarizing the behavior.

In my application, I have a form that contains a spinner field. If the user leaves focus on the spinner field and walks away, the page will eventually time out, destroy the form, and log out. When the log out occurs, a message box is displayed to the user. Once you close the message box, the spinner field that should be destroyed already attempts to execute the mimicBlur function, which leads to an undefined error because the field's dom has been destroyed.



Test Case:

Code:
Code:
var w = new Ext.Window({
  height: 100
  ,width: 400
  ,title: 'Test spinner field - destroy focus'
  ,items: [{
    items: [{
      anchor: '100%'
      ,fieldLabel: 'Spinner'
      ,id: 'test-spinner-field'
      ,xtype: 'spinnerfield'
    }]
    ,xtype: 'form'
  }]
});
w.show();

Ext.getCmp('test-spinner-field').focus(true,100);

(function(){
Ext.Msg.alert('Alert','Message');
w.close.defer(100,w);
}).defer(2000);
Steps to reproduce the problem:
  1. Run the test code and wait for the delay (2 seconds)
  2. Click the OK on the message box
  3. The error "this.dom is undefined" occurs.


The result that was expected:
No error


The result that occurs instead:
this.dom is undefined


Screenshot or Video:


Debugging already done:
none


Possible fix:
Remove the 'mousedown' listener for the document upon destroy.