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

Thread: Store occasionally loads too early OR models loading too late

  1. #11
    Sencha User
    Join Date
    May 2012
    Posts
    63
    Vote Rating
    6
      0  

    Default

    I'm glad you posted that; it worked fine until I tried to deploy using "sencha app build testing", then I had to switch to your method.

  2. #12
    Sencha User
    Join Date
    Jul 2012
    Posts
    56
    Answers
    1
    Vote Rating
    3
      0  

    Default

    Loading the global variables this way, seems to load them after everything else has been written, causing undefined errors. Has anyone else noticed this?? If so, do you have a fix?

  3. #13
    Sencha User
    Join Date
    Feb 2013
    Location
    Mumbai, INDIA
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Quick question Mitchell, in my project I have more than 50 app level static variables and similar 4-5 static functions for which I have created separate util classes and placed them like app/util/URL_Util.js and so on which allows me to keep them grouped approapriately.

    So, my question is what would you suggest if I have to keep these static utils in separate files for a clean looking app?

    Thanks!
    Alok

  4. #14
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Quote Originally Posted by alok0412 View Post
    So, my question is what would you suggest if I have to keep these static utils in separate files for a clean looking app?
    You can have as many utility classes as you need, there isn't any limitation but give them meaningful names.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #15
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Quote Originally Posted by markgogreen View Post
    Loading the global variables this way, seems to load them after everything else has been written, causing undefined errors. Has anyone else noticed this?? If so, do you have a fix?
    Did you require it in app.js before the Ext.application call using Ext.require?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

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