You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
});
The text was updated successfully, but these errors were encountered:
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
}
});
The text was updated successfully, but these errors were encountered: