Error : Accessing the ‘caller’ property of a function or arguments object is not allowed in strict mode
On click of the same button action, am starting couple of workflows and at the end am trying to submit the form using by triggering on keypress event. This error surfaces only on IE11 and edge. Works just fine on chrome.
Button:
Script for onclick function from which am triggering onkeypress:
setTimeout(function() { subId = '8551c477-e9ac-4aab-a012-5e92f7c44ca2'; startWorkflow(itemId, subId).then(function() { setTimeout(function() { $ ('#resubmit').keypress(); }, 7000); deffered.resolve(); return true; }, function() { deffered.reject(); }); }, 2000); });