Skip to content

Commit d237d34

Browse files
jodydonettignarf
authored andcommitted
removed a useless "else" -> better readability
1 parent e1bf5ff commit d237d34

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

page/jquery-ui/widget-factory/how-to-use-the-widget-factory.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ prepending an underscore to the function name.
9090
// no value passed, act as a getter
9191
if ( value === undefined ) {
9292
return this.options.value;
93-
// value passed, act as a setter
94-
} else {
95-
this.options.value = this._constrain( value );
96-
var progress = this.options.value + "%";
97-
this.element.text( progress );
9893
}
94+
95+
// value passed, act as a setter
96+
this.options.value = this._constrain( value );
97+
var progress = this.options.value + "%";
98+
this.element.text( progress );
9999
},
100100
// create a private method
101101
_constrain: function( value ) {

0 commit comments

Comments
 (0)