title: Getting "this" of an ES6 class to call methods and get data members
body: <p>I want to call other class methods from inside a class but when some method call a method, I lose access to <code>this</code> because now <code>this</code> is the calling method and can't other class methods or get data members.</p>
  
  <p>For example:</p>
  
  <pre><code>class someclass{
  
      _this = this;
  
      foo(){
          this.bar();
      }
  
      bar(){
          this.baz();  // this is foo not someclass
          _this.baz(); // _this is not defined
      }
  
      baz(){
  
      }
  }
  </code></pre>
  
  <p>So how can I always have access to the actual class to be able to call its methods and use its data members from its methods?</p>
  
  <p>EDIT: in my actual code, I have another object that calls <code>foo</code> with an event, so <code>this</code> is that object when entering <code>foo</code> and not <code>someclass</code>.</p>