title: Dart events in JavaScript
body: <p>I have this code <a href="http://jsfiddle.net/smap/XCxzK/light/" rel="nofollow">here</a>, which I am converting to Dart. The problem is with the callbacks.</p>
  
  <pre><code>function stop(e) {
      var node = e.target.getContainer();
      node[SMap.LAYER_MARKER].style.cursor = "";
      var coords = e.target.getCoords();
      alert("Cílová pozice: " + coords.toWGS84(2).reverse().join(" "));
  }
  
  var signals = mapa.getSignals();
  signals.addListener(window, "marker-drag-stop", stop);
  </code></pre>
  
  <p>My code in Dart</p>
  
  <pre><code>  var signals = mapa.callMethod('getSignals', []);
    signals.callMethod('addListener', [context, 'marker-drag-stop', stop]);
  }
  
  
  stop(MouseEvent event) {
    var target = event.target.callMethod('getContainer',[]);// problem
    context.callMethod('alert', ['texttext']); 
  }
  </code></pre>
  
  <p>The stop callback is properly called, but I don't know what to do with <code>var node = e.target.getContainer();</code> line. The e.target return something, but what next.</p>
  
  <p>Side question: is <code>mapa.callMethod('addLayer', [layer]).callMethod('enable', []);</code> syntax, only one posible way to call javascript methods. I find it little bit cumbersome:-/</p>
  
  <p>This whole js-interop thingy is kind of messy. I'm unable to resolve it by my own and need to ask again after each step. I hope when I will cover all interop use cases, I will be able, just to use Dart and forget about JS.</p>