* Schedule the execution of the callbacks registered with onAfterUiUpdate. * The callbacks are executed after a short while, unless another call to this function * is made before that time. IOW, the callbacks are executed only once, even * when there are multiple mutations observed.
()
| 109 | * when there are multiple mutations observed. |
| 110 | */ |
| 111 | function scheduleAfterUiUpdateCallbacks() { |
| 112 | clearTimeout(uiAfterUpdateTimeout); |
| 113 | uiAfterUpdateTimeout = setTimeout(function() { |
| 114 | executeCallbacks(uiAfterUpdateCallbacks); |
| 115 | }, 200); |
| 116 | } |
| 117 | |
| 118 | var executedOnLoaded = false; |
| 119 |
no test coverage detected