andreruffert/rangeslider.js — pull request #16 by jugglinmike (2014-03-20 17:26:56+00:00)
Title: Support in-memory initialization

When range input elements are created in memory, the value for
`maxHandleX` will be zero. This causes the value reported by the initial
"slide" event to be NaN.

$('').rangeslider({
onSlide: function(pos, val) {
// Number.isNaN(val) === true;
}
});

Modify the value calculation to return 0 when `maxHandleX` is 0.