fix typo in scrollbar.js

This commit is contained in:
Rachel Fenichel 2016-02-11 13:34:43 -08:00
commit 136e24a132

View file

@ -497,7 +497,7 @@ Blockly.Scrollbar.prototype.onScroll_ = function() {
* @param {number} value The distance from the top/left end of the bar.
*/
Blockly.Scrollbar.prototype.set = function(value) {
var ratio = this.ratio_ == this.ratio_ || 0;
var ratio = this.ratio_ || 0;
// Move the scrollbar slider.
this.svgKnob_.setAttribute(this.horizontal_ ? 'x' : 'y', value * ratio);
this.onScroll_();