1. #1
    Ext User
    Join Date
    Apr 2007
    Location
    Minneapolis, MN
    Posts
    4
    Vote Rating
    0
    designflaw is on a distinguished road

      0  

    Default View: onAdd and onUpdate calls to prepareData

    View: onAdd and onUpdate calls to prepareData


    I'm playing around with the View class and I noticed that my prepareData function was not receiving the index parameter whenever I called refreshNode().

    It looks like in onAdd (line 195) and onUpdate (line 182) prepareData is called with just the data object without the index. Is this intentional? The documentation does not list the index parameter as optional so I would expect to receive it always.

  2. #2
    Ext User
    Join Date
    Apr 2007
    Location
    Minneapolis, MN
    Posts
    4
    Vote Rating
    0
    designflaw is on a distinguished road

      0  

    Default


    Is this not a bug? Both functions have the index so I'm confused as to why they wouldn't pass it to prepareData

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    It shouldn't be documented because it isn't always passed. I have removed the docs.

    Take a look at onAdd and onUpdate - the i is not the index in the store, it is the index in the modified records.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

Thread Participants: 1

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