1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default 4.1Beta1: SyntaxError: Unexpected token delete

    4.1Beta1: SyntaxError: Unexpected token delete


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1 Beta 1 - Nightly Build 20120125
    Browser versions tested against:
    • Chrome 16
    DOCTYPE tested against:
    • Strict
    Description:
    • A store that has a field named "delete" will cause a hard JS error.
    Steps to reproduce the problem:
    • Run the code.
    The result that was expected:
    • No error.
    The result that occurs instead:
    • Error: SyntaxError: Unexpected token delete
    Test Case:
    Code:
    Ext.create('Ext.data.Store', {
        storeId:'simpleStore',
        fields:[
            {name:'id',type:'int'},
            'name',
            {name:'delete',type:'bool'}
            //'create',
            //'update'
        ],
        data:{'items':[
            {"id":"1","name":"Lisa","delete":"true"},
            {"id":"2","name":"Bart","delete":"false"},
            {"id":"3","name":"Homer","delete":"false"},
            {"id":"4","name":"Marge","delete":"true"}
        ]},
        proxy: {
            type: 'memory',
            reader: {
                type: 'json',
                root: 'items'
            }
        }
    });
    
    
    Ext.create('Ext.grid.Panel', {
        title: 'Simple Grid',
        store: Ext.data.StoreManager.lookup('simpleStore'),
        columns: [
            {header: 'Id', dataIndex: 'id', hidden: true },
            {header: 'Name', dataIndex: 'name', flex:1}
        ],
        height: 200,
        width: 500,
        renderTo: Ext.getBody()
    });

    HELPFUL INFORMATION

    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • WinXP Pro

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,828
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

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