While working on Simple Simon, I realized the setTimeout function does not work properly on the Android system… I know it isn’t the most elegant fix, but its almost spot on…


function setTimeout_mp(func, time) {
    var d = new Date();
    ms = d.getTime();
    var x = ms + time;

    while (msvar d = new Date();
        ms = d.getTime();
    }

    eval(func);
}

468 ad