Index: trunk/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js |
— | — | @@ -213,7 +213,7 @@ |
214 | 214 | var $ui = $target.data( 'wikiEditor-context' ).$ui; |
215 | 215 | var passes = 0; |
216 | 216 | var tests = 0; |
217 | | - for ( test in wikiEditorTests ) { |
| 217 | + for ( var test in wikiEditorTests ) { |
218 | 218 | var pre = $ui.find( wikiEditorTests[test].test ).size() == |
219 | 219 | wikiEditorTests[test].pre; |
220 | 220 | messages.push ( test + '-pre: ' + ( pre ? 'PASS' : 'FAIL' ) ); |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | if ( ! ( 'section' in data && 'page' in data ) ) { |
105 | 105 | continue; |
106 | 106 | } |
107 | | - $characters = context.modules.toolbar.$toolbar.find( |
| 107 | + var $characters = context.modules.toolbar.$toolbar.find( |
108 | 108 | 'div[rel=' + data.section + '].section ' + 'div[rel=' + data.page + '].page div' |
109 | 109 | ); |
110 | 110 | var actions = $characters.data( 'actions' ); |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | // Fix div.section size after adding things; if smooth is true uses a smooth |
137 | 137 | // animation, otherwise just change height (breaking any ongoing animation) |
138 | 138 | var $divSections = context.modules.toolbar.$toolbar.find( 'div.sections' ); |
139 | | - $visibleSection = $divSections.find( '.section:visible' ); |
| 139 | + var $visibleSection = $divSections.find( '.section:visible' ); |
140 | 140 | if ( $visibleSection.size() ) { |
141 | 141 | if ( smooth ) { |
142 | 142 | $divSections.animate( { 'height': $visibleSection.outerHeight() }, 'fast' ); |
— | — | @@ -491,7 +491,7 @@ |
492 | 492 | break; |
493 | 493 | case 'characters': |
494 | 494 | $page.addClass( 'page-characters' ); |
495 | | - $characters = $( '<div/>' ).data( 'context', context ).data( 'actions', {} ); |
| 495 | + var $characters = $( '<div/>' ).data( 'context', context ).data( 'actions', {} ); |
496 | 496 | var actions = $characters.data( 'actions' ); |
497 | 497 | if ( 'language' in page ) { |
498 | 498 | $characters.attr( 'lang', page.language ); |
— | — | @@ -598,7 +598,7 @@ |
599 | 599 | var $section = |
600 | 600 | $(this).data( 'context' ).$ui.find( '.section-' + $(this).parent().attr( 'rel' ) ); |
601 | 601 | var show = $section.css( 'display' ) == 'none'; |
602 | | - $previousSections = $section.parent().find( '.section-visible' ); |
| 602 | + var $previousSections = $section.parent().find( '.section-visible' ); |
603 | 603 | $previousSections.css( 'position', 'absolute' ); |
604 | 604 | $previousSections.removeClass( 'section-visible' ); |
605 | 605 | $previousSections.fadeOut( 'fast', function() { $(this).css( 'position', 'relative' ); } ); |