diff --git a/extension.json b/extension.json index c42f896f..58edb998 100644 --- a/extension.json +++ b/extension.json @@ -35,7 +35,7 @@ "ext.inputBox": { "scripts": "ext.inputBox.js", "dependencies": [ - "jquery.throttle-debounce" + "mediawiki.util" ], "targets": [ "mobile", diff --git a/resources/ext.inputBox.js b/resources/ext.inputBox.js index b052758c..5bb720ad 100644 --- a/resources/ext.inputBox.js +++ b/resources/ext.inputBox.js @@ -24,6 +24,6 @@ onChange.call( $input.get( i ) ); } - $input.on( 'keyup input change', $.debounce( 50, onChange ) ); + $input.on( 'keyup input change', mw.util.debounce( 50, onChange ) ); } ); }( jQuery, mediaWiki ) );