diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 08:38:11 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 08:38:11 +0000 |
commit | 4f6988399605c7779c8685f910d6efa609e6f9b6 (patch) | |
tree | 7b889a1e2ba24bc99ce4ca41c5c4a4b7c42a453c | |
parent | c958e0c7140dee21ec0e9988e2e5e3a41e62e011 (diff) | |
download | jquery-ui-4f6988399605c7779c8685f910d6efa609e6f9b6.tar.gz jquery-ui-4f6988399605c7779c8685f910d6efa609e6f9b6.zip |
progressbar: option-test fails for non-numeric values, so anything non-numeric is now normalized to 0
-rw-r--r-- | ui/ui.progressbar.js | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |