New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurements: convert setting not working correctly #344

Closed
dioslaska opened this Issue Aug 14, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@dioslaska
Copy link
Contributor

dioslaska commented Aug 14, 2015

Setting the convert setting to true or false will cause an error in every measurement scroller, on init, or when the unit is changed.

Current workaround to disable conversion is to pass a function which simply returns the value:

$('#distance').mobiscroll().distance({
    convert: function (value, unit1, unit2) {
        return value; // Return value without converision
    }
});

@dioslaska dioslaska added this to the 2.17.0 milestone Aug 14, 2015

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Sep 1, 2015

Fixed, will be released in 2.17.0

@dioslaska dioslaska closed this Sep 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment