I have an object like;
var defaults = {
id: \'ActionSlider\',
element: \'\',
closeBtnWidth: 55,
panelWidth: 320,
clas
Usually class refers to the class attribute of any object like <div >
, <input >
etc. which shows displays class as <div class="someclass">
class
is reserved words in javascript
Yep, class
is a reserved word. MDN
You need to add quotes round the class
which is a reserved word. Please also note, that you should remove the last comma:
var defaults = {
id: 'ActionSlider',
element: '',
closeBtnWidth: 55,
panelWidth: 320,
"class": '',
css: {},
create: function() {}
}