Hi I am getting an uncaught reference exception on my code.This is what I have:
var config = {
debug: true,
data: {
debug: false,
logErrorsOnServer: true,
defaultCulture: '',
serviceUrl: ''
},
init: function(options) {
if (!options) {
return;
}
if (options.hasOwnProperty('debug')) {
data.debug = options.debug;
}
},
};
When I try to get the value of data.debug I get an uncaught reference error that says:
UncoughtReference Error: data is not defined
Whay can't I acces my data object?