Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Colin Alworth
    @niloc132
    i also prefer not to use sourcemaps, but i compile to PRETTY and just use that
    you can use the dev tools eval thing, but you have to guess the right names, since theyve been mangled to prevent java hiding breaking js
    Rocco De Angelis
    @rdeangelis83
    @niloc132 do you use some devtoolsFormatters?
    Colin Alworth
    @niloc132
    no, just raw js
    frankly i dont even use sdm all that often
    depends on what i'm working on though
    Or Goshen
    @Oberonc
    I have a weird behavior with chrome and elemento
    I wrote a class that has "implements IsElement<HTMLElement>"
    inside I have this line:
    .add(button().css("ui", "button", "primary", "fluid")
    .attr("type", "button")
    .on(click, event -> onClickedLogin())
    .textContent("Login"))
    this function (onClickedLogin()) is called when the generated code is run on a Firefox browser, but it isnt called when it is run on an eclipse browser
    how can this be ?
    ie, clicking the button in Firefox works, but not in Chrome
    Justin Hickman
    @jhickman
    I'm assuming 'click' is from EventType.click ?
    Justin Hickman
    @jhickman
    for the most part, doing 'on' is going to addEventListener directly on the element
    try other events and log, such as mouse over, mouse in/out, etc. just to see if it's getting ANY events
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Are you doing DomGlobal.body.innerHtml=... anywhere in the application?
    Or Goshen
    @Oberonc
    not using elemntal2 directly
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Still are you doing body.innerHtml?
    Or Goshen
    @Oberonc
    not that I know of (elemento does it indirectly ?)
    btw GWT 2.9.0
    elemento 1.0.3
    no events on that button get triggered
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    No elemento does not
    Or Goshen
    @Oberonc
    no mouseup/mousedown/keypresse
    this is a login window with 2 text inputs
    .on(keypress, event -> GWT.log("keypress")) in the inputs shows nothing in the console as well
    as if no events work in chrome
    or even registered
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Does the log works outside the event?
    Or Goshen
    @Oberonc
    yes
    I added GWT.log("enter class") in the class constructor where I create the root HTMLElement
    it shows
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    You can inspect what events are registered on the element fro dev tools..do you see the event
    Or Goshen
    @Oberonc
    in chrome I see this:
    how can I tell in chrome if there is an event attached to this button ?
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    On the right there is a tab for listeners, inspect it
    the button is the login button
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Can you find your listener?
    Or Goshen
    @Oberonc
    EventType.java that is mentioned is a java file from elemento
    hmm
    so a handler is attached
    but doesnt call my code
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Try this
    Open localhost:9876 then hit clear button ..then back to your application
    Or Goshen
    @Oberonc
    same behaviour
    I tried also mvn clean before
    it is the attached handler .. just need to figure why it isnt calling my code