Kristian Dalgård

Results 92 comments of Kristian Dalgård

The hooks below should `unbind` the element, before it is bound anew. ``` js this.onRefreshed(this.unbind); this.onDestroyed(this.unbind); this.onInvalidate(() => this.unbind(true)); ``` Maybe one of these hooks doesn't run. Would you mind...

Oh, right – you already said that...

Maybe a new `bind` is triggered prematurely so that `this.listener` gets overwritten with a new listener, before `unbind` get a chance to unregister the old `this.listener`? You might be able...

I guess it's simple – a second call to `bind` should never occur unless `unbind` has run successfully.

I don't think that's necessary, but it would be great if you could check whether `bind` is called the second time without `unbind` having been called successfully first – if...

I wonder whether it would be possible for the listener to print its own guid when it fires? It would be interesting to see exactly _what_ listeners are being called.

That must be due to some Blaze internals that aren't relevant to this issue.

I think that's much more likely. Glad we've solved the mystery around `removeEventListener`, at least.

Are there duplicate nexuses on the list if you inspect `ViewModel.Nexus.find()`?

Somewhere there's a reference from the element to the nexus or vice versa that should be removed and garbage collected.