]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Removed unused variables.
authorScott González <scott.gonzalez@gmail.com>
Wed, 25 Apr 2012 12:39:35 +0000 (08:39 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 25 Apr 2012 12:39:35 +0000 (08:39 -0400)
ui/jquery.ui.accordion.js

index 8d062ad51050503146c93fe3ecbaa28a39609a0a..fc208e18a80844a34b4e8b4e7139b2486ee3006f 100644 (file)
@@ -167,8 +167,7 @@ $.widget( "ui.accordion", {
        },
 
        _destroy: function() {
-               var contents,
-                       accordionId = this.accordionId;
+               var contents;
 
                // clean up main element
                this.element
@@ -517,8 +516,7 @@ $.widget( "ui.accordion", {
        },
 
        _toggleComplete: function( data ) {
-               var toShow = data.newContent,
-                       toHide = data.oldContent;
+               var toHide = data.oldContent;
 
                // other classes are removed before the animation; this one needs to stay until completed
                toHide.removeClass( "ui-accordion-content-active" );