Closed peric closed 8 years ago
I updated lodash to 4.3.0. I hope this solves it.
Actually there were some breaking changes in v4.0.0 https://github.com/lodash/lodash/wiki/Changelog#v400.
_.each doesn't accept thisArgs anymore, some functions were renamed or dropped etc.
Thanks anyway, I've updated my code according to the breaking changes so now it's cool.
I know this is just a wrapper around
lodash
, but also because of that reason I'm writing it here and not to thelodash
repository, in case it has already been resolved.Recently, we updated
lodash-rails
from v3.10.1 to v4.0.0, and this introduced problems with 'this' having a wrong context.This happened while we were using a
_.each
method. On the level where the method was called, there was a differentthis
context then inside the method. To make it more clear, I'll write an similar example below.As I mentioned, same thing works as expected in the v3.10.1 and it doesn't work in v4.0.0.
Would it maybe make sense to try update lodash-rails to latest stable 4.. version?