Skip to content

Commit

Permalink
Improving performance on the mythic equip upgrade page more
Browse files Browse the repository at this point in the history
  • Loading branch information
Numbers committed Jan 12, 2023
1 parent bd48e64 commit 1f1979b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1.28.21: Improving performance on the mythic equip upgrade page more
1.28.20: Improving performance on the mythic equip upgrade page
1.28.19: Fixing more missing tooltips
1.28.18: Fixing missing tooltips
Expand Down
4 changes: 2 additions & 2 deletions dist/hh-plus-plus.dev.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hh-plus-plus.meta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Hentai Heroes++ BDSM version
// @description Adding things here and there in the Hentai Heroes game. Also supports HHCore-based games such as GH and CxH.
// @version 1.28.20
// @version 1.28.21
// @match https://*.hentaiheroes.com/*
// @match https://nutaku.haremheroes.com/*
// @match https://*.gayharem.com/*
Expand Down
4 changes: 2 additions & 2 deletions dist/hh-plus-plus.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hh-plus-plus",
"version": "1.28.20",
"version": "1.28.21",
"description": "Adding things here and there in the Hentai Heroes game. Also supports HHCore-based games such as GH and CxH.",
"private": "true",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/modules/MarketEquipsFilterModule/EquipManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ class EquipManager {
} else {
FavouritesManager.addToFavourites(favouriteKey)
}
$slot.attr('data-is-favourite', !isFavourite)
this.updateVisibleIdsForFilter()
this.reconcileElements()
// this.updateVisibleIdsForFilter()
// this.reconcileElements()
}

if (this.$content.length && this.$content.children('div').length) {
Expand Down Expand Up @@ -214,7 +213,8 @@ class EquipManager {
}).observe(this.$content[0], { attributes: true, subtree: true, attributeFilter: ['class'] })

FavouritesManager.onUpdate(() => {
this.reconcileElements()
this.updateVisibleIdsForFilter()
this.reconcileElements(this.name === 'upgrade')
this.checkSelection()
})

Expand Down

0 comments on commit 1f1979b

Please sign in to comment.