code inspections for javascript vars in parent scope ?


We have a project using the titanium api with this little testsetup. Btw. we dont know exactly if this problem points to titanium api. 


var services = {};
services.testvar = {
value : 1

var test = require('test');
test_object = new test();

module.exports = function() {
services.testvar = 2;

and now we have the problem that in test.js code inspection says on services: element is not exported

is there a possibility to make services known for the ide or what can we do to use code inspections right?


Greetings from Cottbus, Germany

1 comment
Comment actions Permalink

Alt+Enter on 'services', choose 'Suppress for statement' to disable inspection


Please sign in to leave a comment.