1. #1
    Sencha User
    Join Date
    Mar 2007
    Location
    Boulder, CO
    Posts
    69
    Vote Rating
    0
    ericwaldheim is on a distinguished road

      0  

    Default Field dom id not being set correctly? (alpha 3 rev 4)

    Field dom id not being set correctly? (alpha 3 rev 4)


    Line 48 of Field.js reads
    Code:
              if(this.id & !cfg.id){
    I think that should be "&&"
    Thanks,
    Eric

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Boulder, CO
    Posts
    69
    Vote Rating
    0
    ericwaldheim is on a distinguished road

      0  

    Default


    Hmmm, my confusion goes deeper,

    If I create a form field w/ an id, subsequent form fields created without ids get the same id.

    in the Ext.form.field.onRender function
    Code:
                var cfg = typeof this.autoCreate == "object" ?
                          this.autoCreate : this.defaultAutoCreate;
                if(this.id & !cfg.id){
                    cfg.id = this.id;
                }
                if(!cfg.name){
                    cfg.name = this.name || this.id;
                }
                this.el = ct.createChild(cfg);
    Please correct me if I'm wrong:
    cfg can be set to this.defaultAutoCreate;
    cfg can then be modified, thus modifying this.defaultAutoCreate;
    We don't want to modify this.defaultAutoCreate, right?
    thanks,
    Eric

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Thanks eric, both of those have been corrected. The defaultAutoCreate line is now:

    Code:
    var cfg = typeof this.autoCreate == "object" ?
                          this.autoCreate : Ext.apply({}, this.defaultAutoCreate);
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

Similar Threads

  1. Am I using Grid.afteredit correctly?
    By gordon in forum Ext 2.x: Help & Discussion
    Replies: 18
    Last Post: 5 Aug 2009, 12:05 PM
  2. Ext JS 3.1 FINAL Available
    By jack.slocum in forum Community Discussion
    Replies: 120
    Last Post: 6 Jul 2009, 4:32 PM
  3. Drag & Drop broken in Safari (Alpha 1 and Alpha 2)
    By maerteijn in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 27 Feb 2007, 8:26 AM
  4. how to use correctly insertBefore::DomHelper with the UM??
    By luke83 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 5 Nov 2006, 7:57 PM
  5. Replies: 2
    Last Post: 5 Nov 2006, 3:29 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi