Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$(window).on("scroll") - Something other than a short was returned from JSNI method #355

Open
nicolasps opened this issue May 23, 2015 · 0 comments
Labels

Comments

@nicolasps
Copy link

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
}
});

@olafleur olafleur added the bug label Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants