I am declaring buttons like this:
the problem is that not all button clicks result in a call to on_button_clicked.
The problem is illustrated on this fiddle.
If you alternate clicking those two buttons fast, you see that not all clicks are registered, even if the physical appearance of the buttons reflect the clicks.
<
span
data-role
=
"button"
data-click
=
"on_button_clicked"
>Button</
span
>
the problem is that not all button clicks result in a call to on_button_clicked.
The problem is illustrated on this fiddle.
If you alternate clicking those two buttons fast, you see that not all clicks are registered, even if the physical appearance of the buttons reflect the clicks.