S
Spartanicus
How should functions be invoked conditionally from within a function?
This throws errors and doesn't work:
function test() {
if (0 == 0)
{
function foo();
}
if (1 == 1)
{
function bar();
}
}
Minimized test case: http://homepage.ntlworld.com/spartanicus/temp.htm
This throws errors and doesn't work:
function test() {
if (0 == 0)
{
function foo();
}
if (1 == 1)
{
function bar();
}
}
Minimized test case: http://homepage.ntlworld.com/spartanicus/temp.htm