Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2522 in a recent build.
  1. #1
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default Ext.isReady needs to be triggered by Ext.onReady

    Ext.isReady needs to be triggered by Ext.onReady


    REQUIRED INFORMATION




    Ext version tested:
    • Sencha Touch 2.0.0


    Browser versions tested against:
    • Chrome 11


    DOCTYPE tested against:
    • HTML 4


    Description:
    • Ext.isReady will not be set to true when nothing is listening for Ext.onReady()


    Steps to reproduce the problem:
    • Open a page with just Sencha Touch
    • Wait a second, then execute:
      console.info('expecting to be loaded:'+Ext.isReady);
      Ext.onReady(Ext.emptyFn);
      console.info('expecting to be loaded:'+Ext.isReady);


    The result that was expected:
    • Ext.isReady is true when the dom is ready


    The result that occurs instead:
    • Ext.isReady needs to be triggered by Ext.onReady()


    Test Case:
    see above





    Best regards
    Roland

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


    Ext.onReady is for Ext JS not Sencha Touch. You should this to be more ST:

    Code:
    Ext.setup({
        onReady : Ext.emptyFn
    });
    However that won't change Ext.isReady. The reason being is Ext.Loader could still be loading and once it makes sure all classes are loaded then it will fire that onReady method so you are not guaranteed that Ext.setup#onReady will fire when that code is executed by the browser. The onReady method will fire when all the classes are made sure is loaded.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Hello!

    Then the API Docs need to be fixed. http://docs.sencha.com/touch/2-0/#!/...method-onReady
    They claim: "Adds a listener to be notified when the document is ready (before onload and before images are loaded). "

    Is there a different on document ready listener?

    best regards
    Roland

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Quote Originally Posted by Dumas View Post
    Hello!

    Then the API Docs need to be fixed. http://docs.sencha.com/touch/2-0/#!/...method-onReady
    They claim: "Adds a listener to be notified when the document is ready (before onload and before images are loaded). "

    Is there a different on document ready listener?

    best regards
    Roland
    Thank you for the report. The documentation does indeed need to be updated.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Vote Rating
    14
    Jacky Nguyen has a spectacular aura about Jacky Nguyen has a spectacular aura about

      0  

    Default


    Docs have been updated for 2.0.1, and Ext.isReady has been marked as private. Ext.onReady should always be used, Ext.isReady should not be relied upon.
    Sencha Touch Lead Architect

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