close
    URL//chrome://;lividtool/barguid/content/lib/costom.js unable to getvalue of the"property"add Event Listiner:object is null or undefined

    0  Views: 1281 Answers: 1 Posted: 12 years ago

    1 Answer

    Look for any array of properties that has a trailing , (comma).
    This can happen easily in ExtJS source code where frequently you will have a list of comma separated properties, then you delete the last one of those properties and you forget to remove the trailing comma.

    Firefox doesn't complain, but Internet Explorer throws a cryptic error message.

    The worst issue is that Internet Explorer gives you a line number and character position that seems worth nothing. It doesn't even tell you, in which source file your bug is.
    Do you see the buggy comma in the example below? I marked it red, yet it's still not easy to spot. I guess my source code is messy :-|


    gridFruits = new Ext.grid.EditorGridPanel({
    store: storeFruits,
    cm: new Ext.grid.ColumnModel([
    {header:"Fruit", width: 30, sortable:true, dataIndex:'group',
    editor:new Ext.form.TextField({allowBlank:false })},

    {header:"Vitamin", width: 15, sortable:true, dataIndex:'vitamin'},

    {header:"Profile", width: 15, sortable:true, dataIndex:'profile',
    renderer: displayProfile},
    ]),
    viewConfig: { forceFit: true },
    sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
    clicksToEdit:2,
    height: 444
    });


    Top contributors in Software category

     
    Colleen
    Answers: 2208 / Questions: 0
    Karma: 40730
     
    ROMOS
    Answers: 720 / Questions: 0
    Karma: 34625
     
    country bumpkin
    Answers: 171 / Questions: 0
    Karma: 10400
     
    pythonlover
    Answers: 332 / Questions: 0
    Karma: 6345
    > Top contributors chart

    Unanswered Questions

    Thành Tâm Plastic
    Answers: 0 Views: 1 Rating: 0
    bk88eucom
    Answers: 0 Views: 7 Rating: 0
    keobongda24hcom
    Answers: 0 Views: 9 Rating: 0
    vsbetpink
    Answers: 0 Views: 6 Rating: 0
    Vf555
    Answers: 0 Views: 8 Rating: 0
    RR88
    Answers: 0 Views: 7 Rating: 0
    xo88jpn
    Answers: 0 Views: 11 Rating: 0
    > More questions...
    499365
    questions
    735103
    answers
    836411
    users