Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    407
    Vote Rating
    6
    gkatz is on a distinguished road

      1  

    Default initialize function in the class system

    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
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      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.

Thread Participants: 1