List of usage examples for com.google.gwt.query.client GQuery has
public GQuery has(final String selector)
From source file:com.arcbees.gquery.appear.client.Appear.java
License:Apache License
private void refreshScrollEvents() { final GQuery body = $(GQuery.body); $(new ArrayList<>(impls.keySet())).unbind(Event.ONSCROLL, ON_SCROLL_FUNCTION).filter(new Predicate() { @Override//www . j av a2s . c om public boolean f(Element e, int index) { return body.has(e).length() == 1; } }).parents().filter(new Predicate() { @Override public boolean f(Element e, int index) { return isScrollable(e); } }).scroll(ON_SCROLL_FUNCTION); }