From: Victor Porton Date: Mon, 22 Aug 2016 20:20:13 +0000 (+0300) Subject: Deprecated jQuery method .size() replaced with property .length X-Git-Tag: 1.31.0-rc.0~5962^2 X-Git-Url: https://git.cyclocoop.org/admin/%24wgScriptPath/%22%20%20%20%20%20%20%20%20%20.%20generer_url_ecrire%28?a=commitdiff_plain;h=1dcb75c94ac501302afcbf9b03cbdc44290baa3e;p=lhc%2Fweb%2Fwiklou.git Deprecated jQuery method .size() replaced with property .length Bug: T143596 Change-Id: I1b37715097ea3f801bb4b8fdfda2a1232fdb118c --- diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js index 1edb9f2e5d..ac60e8f435 100644 --- a/resources/src/jquery/jquery.makeCollapsible.js +++ b/resources/src/jquery/jquery.makeCollapsible.js @@ -347,8 +347,8 @@ } } else if ( $collapsible.parent().is( 'li' ) && - $collapsible.parent().children( '.mw-collapsible' ).size() === 1 && - $collapsible.find( '> .mw-collapsible-toggle' ).size() === 0 + $collapsible.parent().children( '.mw-collapsible' ).length === 1 && + $collapsible.find( '> .mw-collapsible-toggle' ).length === 0 ) { // special case of one collapsible in
  • tag $toggleLink = buildDefaultToggleLink();