diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-01-13 19:23:55 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-01-13 19:23:55 -0500 |
commit | ee77fde5fc732f4da688c5aa3d16080f51a0bcd1 (patch) | |
tree | 4e22d076f12bb1f9aaee42690f9f50cd4171599d | |
parent | 4e7aa53e3e4f56253045bc9db0523da2753e7095 (diff) | |
download | jquery-ui-ee77fde5fc732f4da688c5aa3d16080f51a0bcd1.tar.gz jquery-ui-ee77fde5fc732f4da688c5aa3d16080f51a0bcd1.zip |
Accordion: Cleaned up _createIcons().
-rw-r--r-- | ui/jquery.ui.accordion.js | 12 |
1 files 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 ) { - $( "<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" ); } }, |