PDA

View Full Version : Renaming properties between Ext1.0 and 1.1beta



cwolves
7 Jun 2007, 2:35 PM
I just upgraded to Ext1.1 on a site I'm working on and suddenly my entire admin section stopped working.

Anyway, I was accessing treeNode.data which, in 1.1, no longer exists. I was just wondering if the developers had any kind of plan on this. Are object attributes not listed in the documentation fair game for being killed in future releases?

jack.slocum
7 Jun 2007, 10:14 PM
Anything that is not documented as public is considered private and is subject to change.

What was TreeNode.data? I have never seen it and chances are I made the changes. : 0

cwolves
8 Jun 2007, 4:03 AM
Good to know, although somewhat bothersome considering how I do things :-). If I don't know how to get something the first thing I do is console.log(object) with firebug and then just trace to the object I need. In this case I probably logged tree.selectionModel.getSelectedNoe() or whatnot. I needed the assigned class and .data was the first place I saw it.

I think it was identical to TreeNode.attributes since that's what I changed my code to.