()
| 999 | //it is less complicated to use a flag than managing and canceling |
| 1000 | //timeouts containing multiple callbacks. |
| 1001 | function fireDOMOperation() { |
| 1002 | if(!fireDOMOperation.hasBeenRun) { |
| 1003 | fireDOMOperation.hasBeenRun = true; |
| 1004 | domOperation(); |
| 1005 | } |
| 1006 | } |
| 1007 | |
| 1008 | function closeAnimation() { |
| 1009 | if(!closeAnimation.hasBeenRun) { |