Firebug will scream and shout about Invalid Object Initialization if you mess just a little something up. Firebug does this a lot. It is an unhelpful error because Firebug will direct you to the first line of your object, not where the problem is.
Firebug gave me this, more or less. That wasn’t helpful. (Why did Firebug get full, anyway?)
Firebug’s log limit has been reached. 0 entries not shown. Preferences invalid object initializer[Break on this error]
Let’s say you have some code, and it looks like this.
var TranslationStrings = {
onAdd: "Do you want to add this?",
onDelete, "Do you want to delete this?"
};
If you don’t notice the mistake in the object, Firebug will. It’s just a little something. It is a comma.
The onDelete, "Do...." should have a colon between the key-value pair. Not a colon, those go after a pair. It should be formed like so, onDelete: "Do...".
So remember, watch out for those javascript object literals with commas and colons.