Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function afComplete(event){
- if (window.AF_Queue.length == 0) {
- window.RunningAF = false;
- } else {
- var fn = window.AF_Queue.shift();
- fn();
- }
- return false;
- }
- function runAf(af) {
- if (!window.RunningAF) {
- window.RunningAF = true;
- af();
- } else {
- window.AF_Queue.push(af);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement