Merge "ApiSandbox: Move labels outside progress bars"
[lhc/web/wiklou.git] / resources / src / mediawiki.page.image.pagination.js
index 06c34a5..4541c58 100644 (file)
@@ -2,9 +2,7 @@
  * Implement AJAX navigation for multi-page images so the user may browse without a full page reload.
  */
 
-/* eslint-disable no-use-before-define */
-
-( function ( mw, $ ) {
+( function () {
        var jqXhr, $multipageimage, $spinner,
                cache = {},
                cacheOrder = [];
@@ -86,6 +84,7 @@
                        // Replace table contents
                        $multipageimage.empty().append( $contents.clone() );
 
+                       // eslint-disable-next-line no-use-before-define
                        bindPageNavigation( $multipageimage );
 
                        // Fire hook because the page's content has changed
                        } );
                }
        } );
-}( mediaWiki, jQuery ) );
+}() );