I have a for loop like below:
function activate () {
...some code
..here we know what 'this' is
if( i > 0...) {
function setNodeInvisible(ode) {
for (var i = 0; i < node.children.length; i++) {
if (node.children[i].isMesh) {
this._view.setVisibility(node, false, false);
}
}
}
}
}
but it doesnt know what this is.
outside of this for loop my 'this' is equal to viewport. and i use it fine.
Also here is doesnt know what 'this' is:
function iterateP (parent) {
this._view.setVisibility(parent, true, false);
}
hoew can i get this is these places?