29
devTea
5y

Motherfucking jquery or adminlte, either one of this shit remove my element addEventListener, already found a way to do it, but it kinda hacky so I still searching the problem

Fuck both of you

Comments
  • 1
    I hate all the things which are somehow equivalent to java or having 'J' in starting
    Jquery , JavaScript
    So irritating..🤖
  • 2
    @theKarlisK old days.......🐏
  • 1
    @hash-table here’s what happening, adminlte is an admin template ui, I tried to put 2 buttons on it’s sidebar with a click event. The event of one button worked, but the other doesn’t. Here’s the step

    1st button -> addEvent -> render ajax data
    2nd button -> addEvent

    The first button flowed to the end perfectly, but the event of second button is removed. The second button has nothing related to the first one. Then I tried setTimeout(800) before addEvent on 2nd button and it worked (below 800 doesn’t work) that’s the hack
  • 1
    @hash-table and I just found the most legit way to do it is by putting a function on a button with onClick, it breaks the consistency of the rest of the codebase, but it’s the cleanest way to do it for now
  • 1
    @hash-table can’t find any problem on my code and can’t be bothered to debug the template christmas js
  • 1
    People still use jQuery?
  • 2
    @neoxaero mvc website
  • 2
    @devTea That makes sense, but it's still icky!
  • 1
    JavaScript is beautiful. Strange behavior with jQuery though. Race condition?
  • 2
    @delc82 probably, but I can’t figure it out
Add Comment