frontend-picker.min.js
2 years ago
index.php
12 years ago
public.js
11 years ago
ready-queue.js
4 years ago
ready-queue.min.js
4 years ago
ready.js
4 years ago
ready.min.js
4 years ago
ready-queue.js
12 lines
| 1 | ( function () { |
| 2 | window.advanced_ads_ready_queue = window.advanced_ads_ready_queue || []; |
| 3 | |
| 4 | // replace native push method with our advanced_ads_ready function; do this early to prevent race condition between pushing and the loop. |
| 5 | advanced_ads_ready_queue.push = window.advanced_ads_ready; |
| 6 | |
| 7 | // handle all callbacks that have been added to the queue previously. |
| 8 | for ( var i = 0, length = advanced_ads_ready_queue.length; i < length; i ++ ) { |
| 9 | advanced_ads_ready( advanced_ads_ready_queue[i] ); |
| 10 | } |
| 11 | } )(); |
| 12 |