Skip to content

Commit eb00891

Browse files
committed
Progressbar: Remove remaining mentions of the animation option
1 parent b6a89a8 commit eb00891

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

demos/progressbar/animated.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
<script>
1313
$(function() {
1414
$( "#progressbar" ).progressbar({
15-
value: 59,
16-
animation: true
17-
});
15+
value: 59
16+
}).find( ".ui-progressbar-value" ).addClass( "ui-progressbar-animated-dark" );
1817
});
1918
</script>
2019
</head>
@@ -25,7 +24,10 @@
2524
<div class="demo-description">
2625
<p>
2726
This progressbar has an animated fill by setting the
28-
<code>animation option</code>.
27+
<code>ui-progressbar-animated-dark</code> class
28+
on the
29+
<code>.ui-progressbar-value</code>
30+
element.
2931
</p>
3032
</div>
3133
</body>

ui/jquery.ui.progressbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ $.widget( "ui.progressbar", {
6161
},
6262

6363
_setOption: function( key, value ) {
64-
if ( key === "value" || key === "animation" ) {
64+
if ( key === "value" ) {
6565
this.options[ key ] = value;
6666
this._refreshValue();
6767
if ( this._value() === this.options.max ) {

0 commit comments

Comments
 (0)