M
M
MrJobs2020-05-03 19:58:17
JavaScript
MrJobs, 2020-05-03 19:58:17

$(document).on('ChangeCurrency', function () is executed 2 times?

Good health, connoisseurs!
I don’t understand why $(document).on('ChangeCurrency', function () is executed 2 times?
Inside there is a variable waiting, because there is a delay in getting 1 variable
if(One!== undefined && Two !== undefined){
}

As a result, the code works, but the console writes 2 results each, what did you do wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question