buttonMarkup - Theme feature won't refresh after data-theme is modified

buttonMarkup - Theme feature won't refresh after data-theme is modified

Regarding to a problem like the one here:


In the jQuery Mobile 1.3.0 version, I went with that problem and I solved it like I wrote in my answer in that question.

My actual question is: don't the css classes for the data-role=button element should be updated when doing buttonMarkup('refresh') ?

Otherwise, after the attr('data-teme') change and when doing the refresh action, nothing happens, because the theme classes get mixed up into the class attribute. E.g.: in my case, I got:


ui-btn-hover-c ui-btn-up-c

and

ui-btn-hover-e ui-btn-up-e

All in the same class attribute.







By removing and adding the classes manually, I got the result that the refresh action should return.

Just that.

Regards!