(types, callback)
| 1746 | return TIMEOUT_VALUE; |
| 1747 | }, |
| 1748 | on(types, callback) { |
| 1749 | if (!Array.isArray(types)) types = [types]; |
| 1750 | types.forEach((type) => { |
| 1751 | if (!events[type]) events[type] = []; |
| 1752 | events[type].push(callback); |
| 1753 | }); |
| 1754 | }, |
| 1755 | off(types, callback) { |
| 1756 | if (!Array.isArray(types)) types = [types]; |
| 1757 | types.forEach((type) => { |