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.onScroll = this.onScroll.bind(this)
|
||||||
this.hostElement.addEventListener('scroll', this.onScroll)
|
this.hostElement.addEventListener('scroll', this.onScroll)
|
||||||
|
|
||||||
this.resizeObserver = new ResizeObserver(() => {
|
this.resizeObserver = new ResizeObserver(this.onResize.bind(this))
|
||||||
this.onResize()
|
|
||||||
})
|
|
||||||
this.resizeObserver.observe(this.hostElement)
|
this.resizeObserver.observe(this.hostElement)
|
||||||
|
|
||||||
besServices.push(this)
|
besServices.push(this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user