mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
14 lines
338 B
JavaScript
14 lines
338 B
JavaScript
|
var EXPORTED_SYMBOLS = ["backchannels", "fireEvent", "addBackChannel"];
|
||
|
|
||
|
var backchannels = [];
|
||
|
|
||
|
var fireEvent = function (name, obj) {
|
||
|
for each(backchannel in backchannels) {
|
||
|
backchannel.session.encodeOut({'eventType':name, 'result':obj});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var addBackChannel = function (backchannel) {
|
||
|
backchannels.push(backchannel);
|
||
|
}
|