From b35bf8ddf21c93328deece7558f96c2fd8ade58c Mon Sep 17 00:00:00 2001 From: Ahmed Abdel Razzak Date: Thu, 9 Jan 2014 14:05:47 +0200 Subject: [PATCH] fix rendering negative progressbar value --- page/jquery-ui/widget-factory/how-to-use-the-widget-factory.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/page/jquery-ui/widget-factory/how-to-use-the-widget-factory.md b/page/jquery-ui/widget-factory/how-to-use-the-widget-factory.md index fe3b175f..5bde8210 100644 --- a/page/jquery-ui/widget-factory/how-to-use-the-widget-factory.md +++ b/page/jquery-ui/widget-factory/how-to-use-the-widget-factory.md @@ -118,6 +118,7 @@ $.widget( "custom.progressbar", { value: 0 }, _create: function() { + this.options.value = this._constrain(this.options.value); this.element.addClass( "progressbar" ); this.refresh(); }, @@ -157,6 +158,7 @@ $.widget( "custom.progressbar", { value: 0 }, _create: function() { + this.options.value = this._constrain(this.options.value); this.element.addClass( "progressbar" ); this.refresh(); }, @@ -257,6 +259,7 @@ $.widget( "custom.progressbar", { value: 0 }, _create: function() { + this.options.value = this._constrain(this.options.value); this.element.addClass( "progressbar" ); this.refresh(); },