Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    104
    Vote Rating
    0
    rbahumi is on a distinguished road

      0  

    Default Model's convert function gets the previous value with PullRefresh plugin

    Model's convert function gets the previous value with PullRefresh plugin


    REQUIRED INFORMATION


    Ext version tested:
    • sencha-touch-2.0.1.1


    Browser versions tested against:
    • Chrome


    DOCTYPE tested against:
    • !DOCTYPE HTML


    Description:
    Model's convert function gets the previous value insted of a new value, when using the PullRefresh plugin.
    For example, if I have a model field with name 'username' and value 'Bob', and I define a convert function for the field that will concatenate ' Sacramento' to the username:
    Code:
    fields:[
    	{ name: 'username', type: 'string', convert: function(v){console.log('username: ' + v); return v+' Sacramento';	} },
    ]

    The result that was expected:
    The console.log() output for refreshing the view 3 time (with PullRefresh plugin) will be:
    • username: Bob Sacramento
    • username: Bob Sacramento
    • username: Bob Sacramento


    The result that occurs instead:
    The output for refreshing the view 3 time will be:
    • username: Bob Sacramento
    • username: Bob Sacramento Sacramento
    • username: Bob Sacramento Sacramento Sacramento


    HELPFUL INFORMATION
    The issue does not happen when calling store.load() explicitly (without the PullRefresh plugin).


    Operating System:
    • Win 7 Pro

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    104
    Vote Rating
    0
    rbahumi is on a distinguished road

      0  

    Default


    Just a small reminder about this one - I still see it in Touch 2.2.

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