Expected id, string or number
I have an object like this:
var defaults = {
id: 'ActionSlider',
element: '',
closeBtnWidth: 55,
panelWidth: 320,
class: '',
css: {},
create: function() {},
},
and when I run my page in IE8 standards it gives me the following error:
SCRIPT1028: expected ID, string or number
and points to the line: class: '',
Can someone tell me why I can't use this for IE? is it a reserved word or something else?
+3
source to share
4 answers