Thank you for reporting this bug. We will make it our priority to review this report.
Would it be possible to add Ext.queryCmp() as a shortcut for Ext.ComponentQuery.query()?
var panelsArray = Ext.ComponentQuery.query('panel'); // long form
var panelsArray = Ext.queryCmp('panel'); // shortcut
I personally don't think this is needed. You have the up, down and query methods on each Component that should suffice for almost every situation.
OK... Search the Ext code base... Ext.ComponentQuery.query is used in many places... if you used the shorter form, you could save a few bytes
Ext JS Premium Member
Agree with Les,
For consistency and the same reason Ext.getStore exists.
Also why is it not part of ComponentManager in a method called query?
Wouldn't that make it more consistent with the other managers storeManager, windowManager, etc..?
Originally Posted by mitchellsimoens
Looks like this mapping is now available in Ext JS 6.