Closed KirillGrishin closed 12 years ago
Just checked the ECMAscript spec, and you're right. In fact, there are other Array methods which should take an optional this
argument as well, map
, every
, some
and filter
at least.
This is now fixed.
Thank you Jonas!
Looks like passing scope to Serenade's collection.forEach() as an optional argument has no effect.
example:
mythings.forEach(function(mything){ .. code .. }, this)
this is not passed to the callback function.
Please confirm.