Merge "Use mw.util.debounce() in collapsibleTabs.js"

This commit is contained in:
jenkins-bot 2019-09-11 21:01:37 +00:00 committed by Gerrit Code Review
commit a29c815a4f
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@
* @class jQuery.plugin.collapsibleTabs
*/
( function () {
var isRTL = document.documentElement.dir === 'rtl',
boundEvent = false,
var boundEvent,
isRTL = document.documentElement.dir === 'rtl',
rAF = window.requestAnimationFrame || setTimeout;
/**
@ -50,7 +50,7 @@
// if we haven't already bound our resize handler, bind it now
if ( !boundEvent ) {
boundEvent = true;
$( window ).on( 'resize', $.debounce( 100, function () {
$( window ).on( 'resize', mw.util.debounce( 100, function () {
rAF( $.collapsibleTabs.handleResize );
} ) );
}

View File

@ -63,7 +63,7 @@
"vector.js"
],
"dependencies": [
"jquery.throttle-debounce",
"mediawiki.util",
"jquery.tabIndex"
]
}