Clean up unused variables

Ref: grouped-emoji-picker
This commit is contained in:
Tusooa Zhu 2021-10-08 01:20:35 -04:00
parent 23edc4f7e2
commit f1d6e6afce
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -15,13 +15,6 @@ library.add(
faSmileBeam faSmileBeam
) )
// At widest, approximately 20 emoji are visible in a row,
// loading 3 rows, could be overkill for narrow picker
const LOAD_EMOJI_BY = 60
// When to start loading new batch emoji, in pixels
const LOAD_EMOJI_MARGIN = 64
const filterByKeyword = (list, keyword = '') => { const filterByKeyword = (list, keyword = '') => {
if (keyword === '') return list if (keyword === '') return list
@ -54,10 +47,7 @@ const EmojiPicker = {
showingStickers: false, showingStickers: false,
groupsScrolledClass: 'scrolled-top', groupsScrolledClass: 'scrolled-top',
keepOpen: false, keepOpen: false,
customEmojiTimeout: null, customEmojiTimeout: null
customEmojiLoadAllConfirmed: false,
groupLoadedCount: {},
firstLoaded: false
} }
}, },
components: { components: {
@ -136,7 +126,6 @@ const EmojiPicker = {
}, },
watch: { watch: {
keyword () { keyword () {
this.customEmojiLoadAllConfirmed = false
this.onScroll() this.onScroll()
// Wait for the dom to change // Wait for the dom to change
this.$nextTick(() => this.initializeLazyLoad()) this.$nextTick(() => this.initializeLazyLoad())