PDA

View Full Version : [CLOSED] multiple instances of same tree panel breaks



dirtdevil
13 Oct 2011, 11:15 AM
See the thread I posted...

http://www.sencha.com/forum/showthread.php?150756-Multiple-tree-instances-break-(ext4.0.2a)&p=659863

I tested it a dozen times and it should work but in extjs 4.0.2a, it breaks all other instances except the first one. I checked my code syntax and structure and it looks fine to me.

evant
13 Oct 2011, 12:35 PM
This isn't a bug. They share the same store because you've declared it in the prototype.

dirtdevil
13 Oct 2011, 1:21 PM
Are you sure? Correct me if I'm wrong but since I'm instantiating the class into 2 seperate objects, doesn't the data store also instantiate into two separate datastores as well?

If what your saying is true, how do I have two separate trees with two separate data stores?

dirtdevil
13 Oct 2011, 1:31 PM
nevermind. I googled what you where talking about and that makes sense. Sorry for the confusion.