Show More
@@ -63,10 +63,13 define([ | |||||
63 | // handle in the vertical slider is always |
|
63 | // handle in the vertical slider is always | |
64 | // consistent. |
|
64 | // consistent. | |
65 | var orientation = this.model.get('orientation'); |
|
65 | var orientation = this.model.get('orientation'); | |
66 |
var |
|
66 | var min = this.model.get('min'); | |
67 | this.$slider.slider('option', 'value', value); |
|
67 | var max = this.model.get('max'); | |
|
68 | this.$slider.slider('option', 'value', min); | |||
68 | this.$slider.slider('option', 'orientation', orientation); |
|
69 | this.$slider.slider('option', 'orientation', orientation); | |
69 | value = this.model.get('value'); |
|
70 | value = this.model.get('value'); | |
|
71 | if(value > max) value = max; | |||
|
72 | else if(value < min) value = min; | |||
70 | this.$slider.slider('option', 'value', value); |
|
73 | this.$slider.slider('option', 'value', value); | |
71 | this.$readout.text(value); |
|
74 | this.$readout.text(value); | |
72 |
|
75 |
General Comments 0
You need to be logged in to leave comments.
Login now