Skip to content

Commit 92bad23

Browse files
committed
remove arrow functions from client code
1 parent f9a9d2b commit 92bad23

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

package-lock.json

+30-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/scripts/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ function refreshHistory(localStorageKey, type, cb) {
171171
// Adds a See More button for category containers with content
172172
// that overflows a max height set in the css
173173
function seeMoreButton() {
174-
$('.children-view').each((_, el) => {
174+
$('.children-view').each(function (_, el) {
175175
var $el = $(el)
176176
var $content = $el.find('.children')
177177
if ($el.height() >= $content.height()) return
178178

179179
$el.parent().append('<button class="seeMore-button">See more</button>')
180180
})
181181

182-
$('#category-page').on('click', '.seeMore-button', (el) => {
182+
$('#category-page').on('click', '.seeMore-button', function (el) {
183183
var $button = $(el.currentTarget)
184184
var text = $button.hasClass('show') ? 'See more' : 'See less'
185185

0 commit comments

Comments
 (0)