From 4f6988399605c7779c8685f910d6efa609e6f9b6 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Tue, 15 Sep 2009 08:38:11 +0000 Subject: progressbar: option-test fails for non-numeric values, so anything non-numeric is now normalized to 0 --- ui/ui.progressbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3