use jQuery.promise to trigger callbacks instead of setTimeout
this makes sure callbacks for animations truly are called only after the animation has finished. before, it'd be possible to trigger slightly ahead because of setTimeout tomfoolery
Please register or sign in to comment