Thomas, your example with $entry worked perfectly. I have a question
On Sep 15, 7:40 am, Thomas Broyer <
t.bro...@gmail.com> wrote:
> On Wednesday, September 14, 2011 6:57:42 PM UTC+2, Jésica wrote:
>
> > Hi, I'm facing problems for calling a native method from another. i'm
> > trying to do It like this:
>
> > //JSNI code
> > public native void dragStart()/*-{
> > alert("OnDragStart");
> > }-*/;
>
> > public native void addPushpin()/*-{
> > (...)
> > blah.Events.addHandler(pin, 'dragstart', dragStart);
>
> This should work:
>
> var that = this;
> blah.Events.addHandler(pin, 'dragstart', $entry(function() {