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