I'm usuing gwtQuery 1.4.2 and whe I tried to bind the scroll event using the window object, like this:
CODE
$(window).on("scroll", new Function() {
@Override
public void f() {
//code
}
});
PROBLEM:
It throws this error: "Something other than a short was returned from JSNI method @com.google.gwt.dom.client.Node::getNodeType()': JS value of type undefined, expected short"
WORKAROUND
I could bind the scroll event to the document object without problems and get the same result.
$(document).on("scroll", new Function() {
@Override
public void f() {
//code
}
});
Hi,
I'm usuing gwtQuery 1.4.2 and whe I tried to bind the scroll event using the window object, like this:
CODE
$(window).on("scroll", new Function() { @Override public void f() { //code } });
PROBLEM:
It throws this error: "Something other than a short was returned from JSNI method @com.google.gwt.dom.client.Node::getNodeType()': JS value of type undefined, expected short"
WORKAROUND
I could bind the scroll event to the document object without problems and get the same result.
$(document).on("scroll", new Function() { @Override public void f() { //code } });