Results 1 to 2 of 2

Thread: initialize function in the class system

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    439
    Vote Rating
    7
      1  

    Default initialize function in the class system

    the sencha docs http://docs.sencha.com/touch/2-1/#!/guide/class_system doc does not talk about the initialize function at all yet most custom components use it.
    why is it not in the docs? should I use it when I build a custom component? also whats the difference between constructor and initialize function?
    thanks.

  2. #2
    Sencha User bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Vote Rating
    46
      0  

    Default

    These links might help:

    http://www.sencha.com/forum/showthread.php?163127

    http://www.sencha.com/forum/showthread.php?187754

    Additionally I will say that chapter 3 of the book Sencha Touch In Action goes much more in depth into the component lifecycle. I have purchased the early access edition and I have found it worth it. More info here:

    http://www.manning.com/garcia2/

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

Posting Permissions

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