Skip to content
Permalink
Browse files

progressbar: option-test fails for non-numeric values, so anything no…

…n-numeric is now normalized to 0
  • Loading branch information
jzaefferer committed Sep 15, 2009
1 parent c958e0c commit 4f6988399605c7779c8685f910d6efa609e6f9b6
Showing with 3 additions and 1 deletion.
  1. +3 −1 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();

0 comments on commit 4f69883

Please sign in to comment.
You can’t perform that action at this time.