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

ButtonMarkup Cleanup#3773

Merged
gseguin merged 2 commits intojquery-archive:masterfrom
eddiemonge:patch-2
Mar 10, 2012
Merged

ButtonMarkup Cleanup#3773
gseguin merged 2 commits intojquery-archive:masterfrom
eddiemonge:patch-2

Conversation

@eddiemonge
Copy link
Contributor

Logically group buttonClass creations while fixing ui-fullsize class never being applied.
Also group iconClass creations.
Who uses curly brace-less if statements?

… it.

Save a character, ride a ternary.
roundaboutly fixes ui-fullsize class never being applied
Wilto added a commit that referenced this pull request Mar 8, 2012
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move that if down to line 98 and have:

if ( buttonElements ) {
    el.removeClass( buttonElements.bcls || "" );
} else {
    buttonInner.appendChild( buttonText );
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i didnt know what was in buttonElements.bcls so i was hesitant to move it in case it has ui-link in it

gseguin added a commit that referenced this pull request Mar 10, 2012
@gseguin gseguin merged commit 86af00b into jquery-archive:master Mar 10, 2012
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.

2 participants