-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Selectmenu: Code review #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
} | ||
}, | ||
|
||
_newelementEvents: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_newElementEvents
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Named that way because the events are bound to this.newelement. Variable names (this.list, this.newelement, etc.) are taken over from the old branch. The naming of the vars should be discussed anyway :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See here: #492 (comment)
I'm seeing a lot of uses of Should probably just replace with |
// catch click event of the label | ||
that._bind({ | ||
'click': function( event ) { | ||
that.newelement.focus(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just use this
within a _bind callback. Should remove need for that
inside _create completely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also rename newelement
to something like button
or trigger
. The latter would match what we have in Popup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ahh I did get that wrong. Will be changed soon.
- Agree, button seems legit. Should we change this.list to this.menu? I will change the wrapper var too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, pushed soon.
Nice: Showing 13 changed files with 1,000 additions and 0 deletions. |
…r too much focus events from menu widget
…ve unneeded Menu focus method call in open
…built on first focus
…ode special char wont be displayed
Hey @jzaefferer, I know you want to get rid of the visual tests but they are very useful for testing issues and while developing. I've merged some again. Only three files left, hope thats ok. |
Looking pretty good. Still need to ui-front and icons updates, pinged Scott about that. Also looking for @hanshillen to help with the aria tweaks. Once that is done, I'll rebase my branch and merge it in here. |
.ui-front implementation in autocomplete: 80e46c9 |
Thanks @scottgonzalez, I will take a look asap. For now, its "The Hobbit" time :-) |
|
||
$.widget( "custom.iconselectmenu", $.ui.selectmenu, { | ||
_renderItem: function( ul, item ) { | ||
var li = $( "<li />" ).data( "ui-selectmenu-item", item ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no XML; use "<li>"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Closing this PR since notification emails mostly lead to "outdated diff", so nowhere and its generally just crazy long. Will create a new one from the same branch. |
Request for code review (in accordance with Jörn).
There some open issues being discussed, see the Wiki:
http://wiki.jqueryui.com/w/page/12138056/Selectmenu