I’am doing somtehing like this
Client.Selectors = {
var cfg = null;
Init:function(config){
...
cfg = config;
...
},
Close:function(){
}
};
And on the debugger of chrome I got this error :
Uncaught SyntaxError: Unexpected identifier
I don’t know why
You have problem here:
Should be:
Since you are using object literal notation. So
=changed to:and;changed to,.Learn More: