Closed marcpare closed 11 years ago
It does because filterOne
is not actually relying on the binding of this
to the current object. If, however, at some point in the future the code would change and would add a dependency on this
, it would break. I think keeping the context parameter around there is good style.
Makes sense, thanks.
Hi there, I'm wondering what is the purpose of adding the context param to the each call in filterAll function in the BackboneJS implementation?
Here's the current code:
Appears to work correctly removing the context param to
each
Am I missing one of the execution paths for this?