Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-4308 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    95
    Vote Rating
    3
    grizzly21 is on a distinguished road

      0  

    Default Ext.data.Types.BOOL.convert is different in 2.1.0 than in 2.0.1

    Ext.data.Types.BOOL.convert is different in 2.1.0 than in 2.0.1


    Hi,

    so the way I see it the function in Ext.data.Types.BOOL.convert has changed in the most recent sdk.
    In our app this is a problem because now the stored values (false/true) is different in some certain cases.
    (to be concrete, "0" was converted false before, now it's true).

    So I want to override this to revert to the previous implementation. However if I do with Ext.override or simply by giving Ext.data.Types.BOOL.convert a new value, it is already too late because the Field instances already have the old convert function reference stored in them.
    I could override each field instance's convert manually, but that's slow, or I could manually edit the sdk source which is ugly. Are there any other suggestions? Can I override it before the field instances receive their values?

    Code:
    new Ext.data.Store({
        autoLoad  : true,
        fields    : [
            {
                name : 'foo',
                type : 'bool'
            }
        ],
        proxy     : {
            type : 'ajax',
            url  : 'data/json.json'
        },
        listeners : {
            load : function (store, recs) {
                console.log(recs[0].get('foo'));
            }
        }
    });
    Code:
    [
        {
            "foo" : "0"
        }
    ]
    Last edited by mitchellsimoens; 11 Apr 2013 at 5:18 AM. Reason: added test

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    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


    I have opened a bug in our bug tracker for this.

Thread Participants: 1

Tags for this Thread

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