service2.js: Simplify
This commit is contained in:
parent
273c96b78c
commit
85d8f42dba
@ -31,9 +31,7 @@ class BesService {
|
||||
this.onScroll = this.onScroll.bind(this)
|
||||
this.hostElement.addEventListener('scroll', this.onScroll)
|
||||
|
||||
this.resizeObserver = new ResizeObserver(() => {
|
||||
this.onResize()
|
||||
})
|
||||
this.resizeObserver = new ResizeObserver(this.onResize.bind(this))
|
||||
this.resizeObserver.observe(this.hostElement)
|
||||
|
||||
besServices.push(this)
|
||||
|
Loading…
x
Reference in New Issue
Block a user