gwtquery icon indicating copy to clipboard operation
gwtquery copied to clipboard

on function is not triggered when Selector is included

Open confile opened this issue 10 years ago • 0 comments

It is also strange that the following works:

$(contentList).find(".mytouch")
        .on("tap", new Function() {

            public boolean f(Event ev) {

              GWT.log("div tapped");

              return true;
            }
        });

and the following does NOT work:

$(contentList).on("tap", ".mytouch", new Function() {

            public boolean f(Event ev) {

              GWT.log("div tapped");

              return true;
            }
        });

confile avatar Jan 02 '15 15:01 confile