diff options
author | Victor Porton <porton@narod.ru> | 2016-08-22 23:20:13 +0300 |
---|---|---|
committer | Victor Porton <porton@narod.ru> | 2016-08-22 23:21:29 +0300 |
commit | 1dcb75c94ac501302afcbf9b03cbdc44290baa3e (patch) | |
tree | 8c3ade91942370ca5e5a5ecefa141263a44f7846 /resources/src/jquery/jquery.makeCollapsible.js | |
parent | c89b46d65022e59c3501ae3eb72de5e31bb2ca72 (diff) | |
download | mediawikicore-1dcb75c94ac501302afcbf9b03cbdc44290baa3e.tar.gz mediawikicore-1dcb75c94ac501302afcbf9b03cbdc44290baa3e.zip |
Deprecated jQuery method .size() replaced with property .length
Bug: T143596
Change-Id: I1b37715097ea3f801bb4b8fdfda2a1232fdb118c
Diffstat (limited to 'resources/src/jquery/jquery.makeCollapsible.js')
-rw-r--r-- | resources/src/jquery/jquery.makeCollapsible.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js index 1edb9f2e5d91..ac60e8f4352a 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 <li> tag $toggleLink = buildDefaultToggleLink(); |