Cannot apply function: variable1
A JavaScript function passed in from another thread cannot be applied
Avoid passing JavaScript functions as parameters that may be executed from a different thread.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.