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(); },