Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,513
    Vote Rating
    259
    LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of

      0  

    Default Ext.queryCmp

    Ext.queryCmp


    Would it be possible to add Ext.queryCmp() as a shortcut for Ext.ComponentQuery.query()?

    Code:
    var panelsArray = Ext.ComponentQuery.query('panel'); // long form
    var panelsArray = Ext.queryCmp('panel'); // shortcut

  2. #2
    Sencha - Senior Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,744
    Vote Rating
    927
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,513
    Vote Rating
    259
    LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of

      0  

    Default


    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

  4. #4
    Ext JS Premium Member
    Join Date
    Sep 2007
    Location
    CT
    Posts
    462
    Vote Rating
    3
    ValterBorges is on a distinguished road

      0  

    Default Managers

    Managers


    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..?

  5. #5
    Sencha User
    Join Date
    Jan 2008
    Posts
    8
    Vote Rating
    0
    sarimarton is an unknown quantity at this point

      0  

    Default


    I agree, this is needed.