Assuming I read the current (rev 5) Docs correctly, I was hoping I could use findParent("table", true) and receive an Ext.element back. However, it seems to return an HTML Element unless I also specify the depth. findParent("table", 10, true)
Wouldn't it make more sense to switch the last two params so that I don't have to specify the depth all the time?
Wouldn't it make more sense to switch the last two params so that I don't have to specify the depth all the time?

#2
![]() |
![]() Just a little peek at the source helps here!
It's the third parameter that you should set to true. The second is the maximum number of steps up the parent axis to look. ![]() |
#3
![]() |
![]() martin, pass null for depth if you don't need it. returnElement was an addition to the function after it already existed and changing the signature was not an option.
![]() |