PROBLEM SOLVED.
Special thanks to Andrew Noyes for explaining its not a class but a Object Literal Notation. What a noob am I..
EDIT:
SORRY, i made a mistake in my js file, the structure of my js is like this:
(I am totally new to javascript, i need your guys help here...)
var className = {
settings : {
setA : true,
setB: true,
setC: true,
},
Default : {
move: true,
remove: true,
edit: true,\
},
...
}
And in my html, index.html, i include the class.js file, but i want to change the setting to like:
Default : {
move : false,
remove: false,
edit: false,
}
because only the edit.html, users are allowed to move, remove and edit.
How do I do that? Should I have 2 js, class_disable.js (include in index.html) and class_enable.js(for edit.html)?
Need your advise..
I tried:
className.settings.Default = {move = false, remove = false, edit = false};
But it does not work.