diff --git a/javascripts/jquery-vimvol.js b/javascripts/jquery-vimvol.js index 6963b59..30086fc 100644 --- a/javascripts/jquery-vimvol.js +++ b/javascripts/jquery-vimvol.js @@ -16,7 +16,7 @@ var $this = $(this), $body = $('body'), steps = $this.attr('max') || settings.steps, - value = settings.volume.toString() || $this.attr('value') / steps || settings.value / steps, + value = settings.volume ? settings.volume.toString() : $this.attr('value') / steps || settings.value / steps, $el = $('').appendTo($this.parent()).addClass(settings.class); $this = $this.detach().appendTo($el); @@ -102,4 +102,4 @@ }); } -}(jQuery, window, document)); \ No newline at end of file +}(jQuery, window, document));