Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3782 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Sep 2007
    Posts
    55
    Vote Rating
    0
    mvarshavsky is on a distinguished road

      0  

    Default Ext.id() doesn't return unique id

    Ext.id() doesn't return unique id


    REQUIRED INFORMATION


    Ext version tested:
    • ST 2.0.1ST2

    Description:
    According to documentation, Ext.id() function takes only optional arguments. When both are omitted, prefix is defaulted to ''ext-element-" and sequence is provided by Ext.idSeed. Looks like when elements are created though, idSeed is not incremented accordingly. Because of that, a call to Ext.id() might return a reference to an already-existing element, instead of fresh one

    Steps to reproduce the problem:
    • Use test case below
    • Ext.id() in console
    • "ext-element-1" is returned, which is actually the <head>

    Test Case

    Code:
    Ext.create('Ext.Panel', {
        fullscreen : true,
        html       : 'Hello from your first Sencha Touch App made by Sencha Fiddle.'
    });
    Last edited by mitchellsimoens; 1 Dec 2012 at 7:49 AM. Reason: Added testcase to post

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,632
    Vote Rating
    817
    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


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1