title: Haxe Javascript: Prevent '$bind' generation?
body: <p>Is there a simple way to prevent <strong>$bind</strong> generation when passing around class member functions?</p>
  
  <p>I have an object that takes in a function which will be called in an arbitrary interval. The object always binds itself as the 'this' binding before calling the function (this is done in the native side), therefore the call to <strong>$bind</strong> itself is unnecessary. However, I can't seem to find a simple way to prevent <strong>$bind</strong> from being emitted any time I grab a member function by value.</p>
  
  <p>The only way I've found is to use <strong>__js__</strong> with a string literal of the member function name, which I would rather avoid... Is there a typed way to do so? Or something a bit nicer? A way to still use haxe syntax w/ identifiers instead of a string literal?</p>
  
  <p>Example:</p>
  
  <pre><code>private function onSpawn():Void
  {
      this.setAct( act ); // Will generate JS: this.setAct($bind(this,this.act));
                          // Id like to simply have it generate: this.setAct( this.act );
  
      // Mitigated like this:
      this.setAct( untyped __js__("this.act") );
  }
  
  private function act( dt:Float ):Void
  {
      ...
  }
  </code></pre>
  
  <p>Thank you.</p>