diff --git a/.eslintrc.json b/.eslintrc.json index 80642a1f6..74602b425 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,7 +14,6 @@ "no-jquery/no-class-state": "off", "no-jquery/no-noop": "off", "no-jquery/no-now": "off", - "no-jquery/no-proxy": "off", "no-jquery/no-support": "off" } } diff --git a/resources/mmv.bootstrap/mmv.bootstrap.js b/resources/mmv.bootstrap/mmv.bootstrap.js index 0c20f465a..06463bc60 100644 --- a/resources/mmv.bootstrap/mmv.bootstrap.js +++ b/resources/mmv.bootstrap/mmv.bootstrap.js @@ -57,8 +57,7 @@ // find and setup all thumbs on this page // this will run initially and then every time the content changes, // e.g. via a VE edit or pagination in a multipage file - mw.hook( 'wikipage.content' ).add( $.proxy( this, 'processThumbs' ) ); - + mw.hook( 'wikipage.content' ).add( this.processThumbs.bind( this ) ); } MMVB = MultimediaViewerBootstrap.prototype;