On Mon, Apr 29, 2013 at 2:23 PM, Felix Nagel <notifications@github.com>wrote:

> In demos/selectmenu/custom_render.html:
>
> > +				var li = $( "<li>" ).data( "ui-selectmenu-item", item ),
> > +					element,
> > +					span;
> > +
> > +				if ( item.disabled ) {
> > +					li.addClass( "ui-state-disabled" ).text( item.label );
> > +				} else {
> > +					element = item.element;
> > +					span = $( "<span>", {
> > +						style: element.attr( "style" ),
> > +						'class': "ui-icon " + element.attr( "class" )
> > +					});
> > +					$( "<a>", {
> > +							text: item.label,
> > +							href: '#'
> > +					}).append( span ).appendTo( li );
>
> Seperated.
>
> How to deal with the needed element attributes? Inline? In temp vars
> before using append?
>

I've lost the context here. As soon as you change the code, the discussion
becomes impossible to find/respond to. Can you ask the question in the
updated diff?