mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-23 22:54:02 +00:00
Merge "Replace use of deprecated $.debounce()"
This commit is contained in:
commit
31db12da9e
|
@ -35,7 +35,7 @@
|
|||
"ext.inputBox": {
|
||||
"scripts": "ext.inputBox.js",
|
||||
"dependencies": [
|
||||
"jquery.throttle-debounce"
|
||||
"mediawiki.util"
|
||||
],
|
||||
"targets": [
|
||||
"mobile",
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue