I am new to this and can't figure this out. I have this simplified piece of code:
var StpTable = function () {
function setupPager() {
...
if(i<StpTable.a) {
...
}
...
};
return {
"a": 10,
"init": function() {
setupPager();
}
}
}();
How do I from with the setupPager()
function reference the variable a
without having to use the variable name StpTable
. Tried with this.a but the scope is off.
Any suggestions?