Show More
@@ -68,8 +68,13 b' define([' | |||
|
68 | 68 | this.$slider.slider('option', 'value', min); |
|
69 | 69 | this.$slider.slider('option', 'orientation', orientation); |
|
70 | 70 | value = this.model.get('value'); |
|
71 |
if(value > max) |
|
|
72 |
|
|
|
71 | if(value > max) { | |
|
72 | value = max; | |
|
73 | } | |
|
74 | else if(value < min){ | |
|
75 | value = min; | |
|
76 | } | |
|
77 | this.model.set('value', value, {updated_view: this}); | |
|
73 | 78 | this.$slider.slider('option', 'value', value); |
|
74 | 79 | this.$readout.text(value); |
|
75 | 80 |
General Comments 0
You need to be logged in to leave comments.
Login now