Why does SCA often use `this.model.off([event], nu...
# suitecommerce
m
Why does SCA often use
this.model.off([event], null, this)
? It isn’t documented by Backbone as a valid use of the function. When looking in the console, some models can accumulate a large amount of orphaned listeners in
this.model._events
. Is there an easy way to fix this?
s
What makes
this.model.off([event], null, this)
an invalid use of it? It would remove all callbacks from the specified event based on the current context, wouldn't it?
m
Ah I stand corrected. It was the context that was changing on me. I attributed the error to the wrong place. Thanks!