PDA

View Full Version : What is the best way to clear component state?



jjohnso2
21 May 2012, 6:34 AM
I want to clear the existing state for a component. This code works:


Ext.state.Manager.clear(this.getStateId());

However, I noticed that Ext.state.Stateful#getStateId is marked as private. Why is this? Is there another way to clear a stateful component?

mitchellsimoens
25 May 2012, 11:22 AM
I wonder why it is marked as private. Anyway, getStateId is a stable method that will stick around for the foreseeable future.