mshahbazsaleem/SmartSpin — pull request #1 by 2rist (2012-12-17 12:38:55+00:00)
Title: Give some flexibility to smartspinner

Give some flexibility to the Smartspinner.
Hi! First of all your plugin is great - it's pretty simple and usefull.

But in my application I had to add a few features.
1. Min and max options are optional in my version. By default it's 'none' - and script using this confines only when it setted.
2. Width and height options are custom too. By default they are width: 'inherit', height: 'inherit' and it means that script doesn't set css properties 'height'/'width'. And in calculating it uses el.width() and el.height() instead.

Reason for 1-2 changes : Sometimes there is no need to set these values

3. Option roundPrecision added. By default it's roundPrecision : 'none'- so by default there is no rounding. It added to provide an ability to use smartspinner for "float" values; For example if stepInc = 0.1 then after few value changing it can become something like 7.40000000000001 - in the reason of machine accuracy.

P.S. Sorry for my rude English.
2rist