aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/lib/studip-vue.js
blob: 6ebd59f439336e18aec7e8d8e4a67c2eb2713692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class Vue
{
    static async load()
    {
        return STUDIP.loadChunk('vue');
    }

    static async on(...args)
    {
        const { eventBus } = await this.load();
        eventBus.on(...args);
    }

    static async off(...args) {
        const { eventBus } = await this.load();
        eventBus.off(...args);
}

    static async emit(...args)
    {
        const { eventBus } = await this.load();
        eventBus.emit(...args);
    }
}

export default Vue;