Event triggered twice in the Jquery click

1

I'm having trouble with jQuery events on time. I've already used all best practices to stop the click event. Here are some examples:

.off()
e.preventDefault();
e.stopPropagation();
unbid('click');

Always when there is a click I do this function

function LoadingTela(botao,tipo) {
     if (tipo == true) {
       $(botao).prop("disabled", true); 
       $('.mask-loading').show(); 
     }else { 
       $(botao).prop("disabled", false); 
       $('.mask-loading').hide(); 
     } 
 }

Has anyone come up with any solution or new event control?

    
asked by anonymous 07.06.2018 / 18:27

0 answers