'this' is a keyword, which depends on the way the function has been called.
Because you do not pass this as an argument to addHandler, it's clear that
the function you pass won't ever be called with its this set to the value
of this at the time you called addHandler. Storing this in to a
Crystal clear!, Thanks everyone.
Jésica.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/D3H9MSpLbP0J.
To post to this group, send email to
Technically, Here you are trying to call java method from javascript.
I did not come across this situation, try full compile if throws any
errors.
Global School District
http://schoolk12.appspot.com/
On Sep 14, 9:57 am, Jésica cuello.jes...@gmail.com wrote:
Hi, I'm facing problems for
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()/*-{
The point is that GWT compiler will not understand the dragstart
string in your addHandler(.) method, and let it untouched. Once your
unit will be compiled, the Javascript piece of code you wrote will
refer to an in-existing method, since the actual dragstart() method
will be given another binding
Thomas, your example with $entry worked perfectly. I have a question
about your code snippet: which is representing *that* var assignment
in this case and why Is It necessary to use It?.
Thanks,
Jésica.
On Sep 15, 7:40 am, Thomas Broyer t.bro...@gmail.com wrote:
On Wednesday, September 14, 2011
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);
(...)
}-*/