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: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?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();