You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having problems using forEach if the iterator-function (2nd argument) is a prototype-function of an obejct and uses "this" within its function-body.
I am having problems using forEach if the iterator-function (2nd argument) is a prototype-function of an obejct and uses "this" within its function-body.
Concrete: I am trying to use forEach with "client.add" of node-solr (https://github.com/gsf/node-solr/blob/master/lib/solr.js - line 77).
When I use the following code:
I get: 'this' has no function 'update'. Which is in line 109 of the mentioned solr.js.
What can I do?
The text was updated successfully, but these errors were encountered: