declareMethod: add a third options parameter to ease mutex usage.
Example: rJS(window).declareMethod('getFoo', function () {}, {mutex: 'foo'}) It will prevent 2 concurrent execution of the getFoo calls. The same mutex can be used by other methods if the same name 'foo' is used.
Showing
Please register or sign in to comment