Skip to content

Commit 8773a33

Browse files
committed
Progressbar: Add complete event
1 parent 3236dcd commit 8773a33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/jquery.ui.progressbar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ $.widget( "ui.progressbar", {
113113
},
114114

115115
_refreshValue: function() {
116-
var value = this.value(),
116+
var value = this.options.value,
117117
percentage = this._percentage(),
118118
overlay = this.valueDiv.children().eq( 0 );
119119

@@ -124,6 +124,9 @@ $.widget( "ui.progressbar", {
124124
this.oldValue = value;
125125
this._trigger( "change" );
126126
}
127+
if ( value === this.options.max ) {
128+
this._trigger( "complete" );
129+
}
127130

128131
this.valueDiv
129132
.toggle( this.indeterminate || value > this.min )

0 commit comments

Comments
 (0)