diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js index 858490757..328f8be42 100644 --- a/ui/ui.progressbar.js +++ b/ui/ui.progressbar.js @@ -79,8 +79,10 @@ $.widget("ui.progressbar", { }, _value: function() { - var val = this.options.value; + // normalize invalid value + if (typeof val != "number") + val = 0; if (val < this._valueMin()) val = this._valueMin(); if (val > this._valueMax()) val = this._valueMax();