Index: trunk/extensions/CategoryTree/modules/ext.categoryTree.js |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | * Handles clicks on the expand buttons, and calls the appropriate function |
33 | 33 | */ |
34 | 34 | this.handleNode = function() { |
35 | | - $link = $( this ); |
| 35 | + var $link = $( this ); |
36 | 36 | if ( $link.data( 'ctState' ) == 'collapsed' ) { |
37 | 37 | that.expandNode( $link ); |
38 | 38 | } else { |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | + mw.msg( 'categorytree-loading' ) + "</i>" |
91 | 91 | ); |
92 | 92 | |
93 | | - $parentTag = $link.parents( '.CategoryTreeTag' ); |
| 93 | + var $parentTag = $link.parents( '.CategoryTreeTag' ); |
94 | 94 | |
95 | 95 | if ( $parentTag.length == 0 ) { |
96 | 96 | // Probably a CategoryPage |
— | — | @@ -134,7 +134,7 @@ |
135 | 135 | that.showToggles(); |
136 | 136 | } ) |
137 | 137 | .error( function() { |
138 | | - $retryLink = $( '<a />' ) |
| 138 | + var $retryLink = $( '<a />' ) |
139 | 139 | .text( mw.msg( 'categorytree-retry' ) ) |
140 | 140 | .attr( 'href', '#' ) |
141 | 141 | .click( function() { that.loadChildren( $link, $children ) } ); |