Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Deprecating getEl - Input appreciated

  1. #11
    Sencha User
    Join Date
    Apr 2012
    Austin, Texas


    "getLite" is a horrible name -- it implies little about what is returned and would be confusing to someone who does know patterns. "getFly" implies exactly what it does (which is more than just a "lite" version -- it's actually a "lite" shared instance, which is different).

    "CompositeElement" also implies something about what it is (i.e. Composite pattern). Lack of knowledge about patterns is not a good reason to advocate not using patterns. The best way to increase the general knowledge of patterns in the development community is for people like Jack to use them (with appropriate naming standards), and Jack does a fantastic job of this in Ext.

  2. #12
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    New York, NY


    I agree with Brian, I am not a big fan of getLite() either.

    I actually really like fly(), you really don't like it? It's short (which is good because I use it everywhere), and to be honest, get() is so fast in the new version most users won't need to use fly() anyway. Those that do should have to understand exactly what it is and what it does. That understanding is important to prevent 100 bug reports of elements no longer functioning.

    FYI, CompositeElementLite was a temp name that somehow stuck because it made it way into SVN.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. what does .getEl() ???
    By humpdi in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 19 Mar 2007, 12:42 PM
  2. getEl Help
    By JasonMichael in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 21 Feb 2007, 12:46 PM
  3. getEl: array of checkboxes
    By Domitian in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 12 Feb 2007, 8:25 AM
  4. Modifying the DOM using getEl()
    By BernardChhun in forum Ext 1.x: Help & Discussion
    Replies: 9
    Last Post: 1 Feb 2007, 2:24 PM
  5. getEl() weirdness...
    By rob30UK in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 17 Jan 2007, 1:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts