Update @wikimedia/types-wikimedia to latest version
- Remove some @ts-ignore statements. - Update invocation of mw.util.debounce to have correct order of parameters. Bug: T303297 Change-Id: I4bb795fbd4d026c21c66e9a3d161afff4d7ef09f
This commit is contained in:
parent
ca25b944da
commit
ccdfbf2e58
File diff suppressed because it is too large
Load Diff
|
@ -17,9 +17,9 @@
|
|||
},
|
||||
"pre-commit": "pre-commit",
|
||||
"peerDependencies": {
|
||||
"@vue/composition-api": "1.4.5",
|
||||
"babel-core": "6.26.3",
|
||||
"vue-template-compiler": "2.6.11",
|
||||
"@vue/composition-api": "1.4.5"
|
||||
"vue-template-compiler": "2.6.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.7.7",
|
||||
|
@ -30,7 +30,7 @@
|
|||
"@types/node-fetch": "2.5.7",
|
||||
"@vue/test-utils": "1.1.0",
|
||||
"@wikimedia/mw-node-qunit": "6.3.0",
|
||||
"@wikimedia/types-wikimedia": "0.2.0",
|
||||
"@wikimedia/types-wikimedia": "0.3.3",
|
||||
"@wikimedia/wvui": "0.3.5",
|
||||
"babel-loader": "8.0.6",
|
||||
"eslint-config-wikimedia": "0.20.0",
|
||||
|
|
|
@ -158,7 +158,6 @@ module.exports = function webABTest( props ) {
|
|||
// Send data to WikimediaEvents to log A/B test initialization if the subject
|
||||
// has been sampled into the experiment.
|
||||
if ( isInSample() ) {
|
||||
// @ts-ignore
|
||||
mw.hook( WEB_AB_TEST_ENROLLMENT_HOOK ).fire( {
|
||||
group: getBucket(),
|
||||
experimentName: props.name
|
||||
|
|
|
@ -11,10 +11,8 @@ const
|
|||
*/
|
||||
function fireScrollHook( direction ) {
|
||||
if ( direction === 'down' ) {
|
||||
// @ts-ignore
|
||||
mw.hook( SCROLL_HOOK ).fire( { context: SCROLL_CONTEXT_BELOW } );
|
||||
} else {
|
||||
// @ts-ignore
|
||||
mw.hook( SCROLL_HOOK ).fire( {
|
||||
context: SCROLL_CONTEXT_ABOVE,
|
||||
action: SCROLL_ACTION
|
||||
|
|
|
@ -38,9 +38,9 @@ function init() {
|
|||
// if we haven't already bound our resize handler, bind it now
|
||||
if ( !boundEvent ) {
|
||||
boundEvent = true;
|
||||
$( window ).on( 'resize', mw.util.debounce( 10, function () {
|
||||
$( window ).on( 'resize', mw.util.debounce( function () {
|
||||
rAF( $.collapsibleTabs.handleResize );
|
||||
} ) );
|
||||
}, 10 ) );
|
||||
}
|
||||
|
||||
// call our resize handler to setup the page
|
||||
|
|
Loading…
Reference in New Issue