Skip to content
Permalink
Browse files

Accordion: Cleaned up _createIcons().

  • Loading branch information...
scottgonzalez committed Jan 14, 2011
1 parent 4e7aa53 commit ee77fde5fc732f4da688c5aa3d16080f51a0bcd1
Showing with 6 additions and 6 deletions.
  1. +6 −6 ui/jquery.ui.accordion.js
@@ -123,14 +123,14 @@ $.widget( "ui.accordion", {
},

_createIcons: function() {
var options = this.options;
if ( options.icons ) {
$( "<span></span>" )
.addClass( "ui-icon " + options.icons.header )
var icons = this.options.icons;
if ( icons ) {
$( "<span>" )
.addClass( "ui-icon " + icons.header )
.prependTo( this.headers );
this.active.children( ".ui-icon" )
.toggleClass(options.icons.header)
.toggleClass(options.icons.activeHeader);
.removeClass( icons.header )
.addClass( icons.activeHeader );
this.element.addClass( "ui-accordion-icons" );
}
},

0 comments on commit ee77fde

Please sign in to comment.
You can’t perform that action at this time.