From ee77fde5fc732f4da688c5aa3d16080f51a0bcd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 13 Jan 2011 19:23:55 -0500 Subject: [PATCH] Accordion: Cleaned up _createIcons(). --- ui/jquery.ui.accordion.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 58a506923..672d57b87 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -123,14 +123,14 @@ $.widget( "ui.accordion", { }, _createIcons: function() { - var options = this.options; - if ( options.icons ) { - $( "" ) - .addClass( "ui-icon " + options.icons.header ) + var icons = this.options.icons; + if ( icons ) { + $( "" ) + .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" ); } }, -- 2.39.5