Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 2f00774

Browse files
Hywanapsdehal
authored andcommitted
Pagecontainer: Remove a useless instruction.
Closes #8418 The `text` variable is first initialized to `this.placeholder`, which is strictly equivalent to use `that.placeholder` inside the function used just after. So in case `selected.length` is falsy, this is not necessary to override `text` to the same value, i.e. its inital value.
1 parent 1c59c52 commit 2f00774

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

js/widgets/forms/select.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ var selectmenu = $.widget( "mobile.selectmenu", [ {
255255
text = selected.map( function() {
256256
return $( this ).text();
257257
} ).get().join( ", " );
258-
} else {
259-
text = that.placeholder;
260258
}
261259

262260
if ( text ) {

0 commit comments

Comments
 (0)