extjs user
extjs user

Reputation: 263

Extjs 4.1 window.close() does not destroy it

I create an object of window, and put tabpanel in this window. but window.close() method does not destroy window. When I click button to open window again it display 2 different tabpanel, one from old window and another from new window and it crash my user interface.

I also called listener "beforeclose" and in this method destroy tabpanel but that doest not work.

What can be done?

Upvotes: 1

Views: 5482

Answers (2)

Jalin Gladis
Jalin Gladis

Reputation: 113

Add closeAction:'destroy' to your window. It should work.

Upvotes: 2

Andron
Andron

Reputation: 6631

Are you sure that closeAction option is set to destroy?
Of course it is a good idea to show simplified sources, so we can understand where the problem exists.

Upvotes: 4

Related Questions