mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 18:38:18 +00:00
Merge "Remove code for handling legacy HTML with data-mw-comment-name"
This commit is contained in:
commit
df0e84c0d1
|
@ -108,17 +108,6 @@ function initTopicSubscriptions( $container ) {
|
|||
}
|
||||
|
||||
var itemName = headingItem.name;
|
||||
if ( !itemName ) {
|
||||
// Cached HTML may not contain item names for a short period. Assume the old
|
||||
// data-mw-comment-name markers are present instead.
|
||||
// This code branch can be removed a week or two after release.
|
||||
itemName = this.getAttribute( 'data-mw-comment-name' );
|
||||
if ( !itemName ) {
|
||||
// This should never happen
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var title = getTitleFromHeading( heading );
|
||||
|
||||
linksByName[ itemName ] = this;
|
||||
|
|
Loading…
Reference in a new issue