Posts tagged 'javascript'

Don't Be Catched by Function Expressions

When preparing the second part of the Debian VM on Windows Azure I have encountered an error in azure-cli showing up only if you use affinity groups. I will explain what is the root cause of the error and why I started to use function definitions. First I want to reproduce the issue that make the error happen using generic code. var something = false; if (something) { setTimeout(function(){ continuation(); }, 100); } else { continuation(); } var continuation = function() { console....

Read more Don't Be Catched by Function Expressions