Sometimes developers from Microsoft create mysterious things... In two words the issue with setTimeout looks like that. There is a standard function window.setTimeout. You can provide the function to call, the interval in milliseconds to wait and some additional arguments to be applied to the function. For example:
And that code works fine if the Minimal Download Strategy is deactivated. But if it is activated you'll see "undefined undefined" in the alert window. It is so because of the override in the start.js file:
The function you're trying to call is stored in variable c. And it is calling just like c() which means that it will not have any arguments you were passing to setTimeout. It is just awesome! You can fix that issue by adding some code to the callee function (the function you're calling after timeout):
Comments