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
});
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
});
| 13 years ago. Rating: 2 | |
Top contributors in Software category
Unanswered Questions
The Seiko Presage Homage To The Crown Chronograph
Answers: 0
Views: 0
Rating: 0
The Ralph Lauren Automotive Chronograph Watch
Answers: 0
Views: 8
Rating: 0
Volume 1 Of The HODINKEE Magazine Japan Edition Is Now Available Worldwide
Answers: 0
Views: 11
Rating: 0
417bet
Answers: 0
Views: 9
Rating: 0
The Bovet 19 Thirty, A Wristwatch Homage To The Pocket Watch
Answers: 0
Views: 10
Rating: 0
The Oris Divers Sixty-Five Chronograph Holstein Edition 2020
Answers: 0
Views: 11
Rating: 0
Idiom Metaphor
Answers: 0
Views: 7
Rating: 0
dh88us
> More questions...
Answers: 0
Views: 7
Rating: 0
johanlon014
Deleted User