Results 1 to 3 of 3
  1. elyon's Avatar
    Posts
    26 Posts
    Global Posts
    29 Global Posts
       #1  
    Hi guys,

    I'm going through the O'Reilly book for webOS, and so far it has been very helpful, but there's one thing I've run into which doesn't make sense. When I try and define a class by creating a file under app/models, it doesn't seem to be available in StageAssistant.prototype.setup. Whenever I reference the name of my class, the compiled application hangs before displaying anything. If I copy and paste my code out of my models directory and include it in my stage assistant file directly, it all works fine.

    Is there something special I need to do to get my models to load, or is StageAssistant.prototype.setup called before the models are loaded ... so maybe I need to try and construct my app at a later time?

    Thanks for the help!
  2. #2  
    Are referencing it correctly in your sources.json file? If you're not sure, post the contents of that file here.
  3. elyon's Avatar
    Posts
    26 Posts
    Global Posts
    29 Global Posts
       #3  
    Ah, perfect! I didn't notice that in the example app for some reason. Makes a lot of sense! Thank you very much for the help

Posting Permissions