Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -109,15 +109,15 @@ |
110 | 110 | } |
111 | 111 | } |
112 | 112 | } |
113 | | -// Each browser seems to do this differently, so let's keep our editor |
114 | | -// consistent by allways starting at the begining |
115 | | -context.$textarea.scrollToCaretPosition( 0 ); |
116 | 113 | // If there was a configuration passed, it's assumed to be for the addModule |
117 | 114 | // API call, so we can just send it on it's way right now |
118 | 115 | if ( arguments.length > 0 && typeof arguments[0] == 'object' ) { |
119 | 116 | context.api.addModule( context, arguments[0] ); |
120 | 117 | } |
| 118 | +//Each browser seems to do this differently, so let's keep our editor |
| 119 | +//consistent by always starting at the begining |
| 120 | +context.$textarea.scrollToCaretPosition( 0 ); |
121 | 121 | // Store the context for next time, and support chaining |
122 | | -return $(this).data( 'context', context );; |
| 122 | +return $(this).data( 'context', context ); |
123 | 123 | |
124 | 124 | };})(jQuery); |
\ No newline at end of file |