diff --git a/buildoz.js b/buildoz.js index 1539cf0..6107f78 100644 --- a/buildoz.js +++ b/buildoz.js @@ -260,10 +260,8 @@ class BZslidePane extends Buildoz { } this.dragMove = this.dragMove.bind(this) this.dragEnd = this.dragEnd.bind(this) - this._observer = new MutationObserver(muts => { // Fill with innerHTML or other DOM manip should not allow coating to be removed - console.log('mutation...') - this.coat() - }) + // Fill with innerHTML or other DOM manip should not allow coating to be removed + this._observer = new MutationObserver(muts => { this.coat() }) } connectedCallback(){ @@ -277,7 +275,7 @@ class BZslidePane extends Buildoz { this._observer.disconnect() } - coat(){ console.log('coat') + coat(){ if(this.handle && this.querySelector(this.dispatchEvent.handle)) return this._observer.disconnect() if(this.querySelector(this.dispatchEvent.handle)) this.querySelector(this.dispatchEvent.handle).remove()