Cleaned up emotePanel.js
This commit is contained in:
parent
e2020406a7
commit
a681bddbf7
|
|
@ -27,6 +27,13 @@ class emotePanel extends panelObj{
|
||||||
constructor(client, panelDocument){
|
constructor(client, panelDocument){
|
||||||
super(client, "Emote Palette", "/panel/emote", panelDocument);
|
super(client, "Emote Palette", "/panel/emote", panelDocument);
|
||||||
|
|
||||||
|
this.defineListeners();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines network related listeners
|
||||||
|
*/
|
||||||
|
defineListeners(){
|
||||||
this.client.socket.on("personalEmotes", this.renderEmoteLists.bind(this));
|
this.client.socket.on("personalEmotes", this.renderEmoteLists.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue