| 1 |
var boxzilla_queue = [] |
| 2 |
|
| 3 |
// create a temporary global Boxzilla object |
| 4 |
// this allows these methods to be called before the Boxzilla script itself has loaded |
| 5 |
var Boxzilla = {}; |
| 6 |
['on', 'off', 'toggle', 'show'].forEach((m) => { |
| 7 |
Boxzilla[m] = function () { |
| 8 |
boxzilla_queue.push([m, arguments]) |
| 9 |
} |
| 10 |
}) |
| 11 |
|
| 12 |
window.Boxzilla = Boxzilla |
| 13 |
window.boxzilla_queue = boxzilla_queue |
| 14 |
|