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

Remove a useless instruction #8418

Closed
wants to merge 1 commit into from
Closed

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Apr 4, 2016

The text variable is first initialized to this.placeholder, which is strictly equivalent to use self.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.

Also fix a CS.

@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

@Hywan
Copy link
Contributor Author

Hywan commented Apr 4, 2016

Build is broken because of an HTTP issue when setting up the environment.

@apsdehal
Copy link
Contributor

apsdehal commented Jul 5, 2016

@Hywan Are you willing to update your PR according to latest master?

@Hywan Hywan closed this Jul 7, 2016
@Hywan
Copy link
Contributor Author

Hywan commented Jul 7, 2016

master no longer has the issue.

@apsdehal
Copy link
Contributor

apsdehal commented Jul 7, 2016

@Hywan
Copy link
Contributor Author

Hywan commented Jul 8, 2016

@apsdehal Done 😃.

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.
@apsdehal
Copy link
Contributor

apsdehal commented Jul 8, 2016

@Hywan This has landed into master 2f00774. Thanks a lot.

@Hywan
Copy link
Contributor Author

Hywan commented Jul 8, 2016

Thanks :-).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants