Browse Source

fixed typo

j8
Nicholas Wittstruck 11 years ago
parent
commit
a6277b810e
4 changed files with 11 additions and 11 deletions
  1. 2
    2
      api_connector.js
  2. 5
    5
      doc/api.md
  3. 2
    2
      external_api.js
  4. 2
    2
      muc.js

+ 2
- 2
api_connector.js View File

31
      * Maps the supported events and their status
31
      * Maps the supported events and their status
32
      * (true it the event is enabled and false if it is disabled)
32
      * (true it the event is enabled and false if it is disabled)
33
      * @type {{
33
      * @type {{
34
-     *              incommingMessage: boolean,
34
+     *              incomingMessage: boolean,
35
      *              outgoingMessage: boolean,
35
      *              outgoingMessage: boolean,
36
      *              displayNameChange: boolean,
36
      *              displayNameChange: boolean,
37
      *              participantJoined: boolean,
37
      *              participantJoined: boolean,
40
      */
40
      */
41
     var events =
41
     var events =
42
     {
42
     {
43
-        incommingMessage: false,
43
+        incomingMessage: false,
44
         outgoingMessage:false,
44
         outgoingMessage:false,
45
         displayNameChange: false,
45
         displayNameChange: false,
46
         participantJoined: false,
46
         participantJoined: false,

+ 5
- 5
doc/api.md View File

91
 
91
 
92
 Currently we support the following events:
92
 Currently we support the following events:
93
 
93
 
94
-* **incommingMessage** - event notifications about incomming
94
+* **incomingMessage** - event notifications about incoming
95
 messages. The listener will receive object with the following structure:
95
 messages. The listener will receive object with the following structure:
96
 ```
96
 ```
97
 {
97
 {
135
 have keys with the names of the events and values the listeners of the events.
135
 have keys with the names of the events and values the listeners of the events.
136
 
136
 
137
 ```
137
 ```
138
-function incommingMessageListener(object)
138
+function incomingMessageListener(object)
139
 {
139
 {
140
 ...
140
 ...
141
 }
141
 }
146
 }
146
 }
147
 
147
 
148
 api.addEventListeners({
148
 api.addEventListeners({
149
-    incommingMessage: incommingMessageListener,
149
+    incomingMessage: incomingMessageListener,
150
     outgoingMessage: outgoingMessageListener})
150
     outgoingMessage: outgoingMessageListener})
151
 ```
151
 ```
152
 
152
 
153
 If you want to remove a listener you can use ```removeEventListener``` method with argument the name of the event.
153
 If you want to remove a listener you can use ```removeEventListener``` method with argument the name of the event.
154
 ```
154
 ```
155
-api.removeEventListener("incommingMessage");
155
+api.removeEventListener("incomingMessage");
156
 ```
156
 ```
157
 
157
 
158
 If you want to remove more than one event you can use ```removeEventListeners``` method with argument
158
 If you want to remove more than one event you can use ```removeEventListeners``` method with argument
159
  array with the names of the events.
159
  array with the names of the events.
160
 ```
160
 ```
161
-api.removeEventListeners(["incommingMessage", "outgoingMessageListener"]);
161
+api.removeEventListeners(["incomingMessage", "outgoingMessageListener"]);
162
 ```
162
 ```
163
 
163
 
164
 You can remove the embedded Jitsi Meet Conference with the following code:
164
 You can remove the embedded Jitsi Meet Conference with the following code:

+ 2
- 2
external_api.js View File

139
      * event and value - the listener.
139
      * event and value - the listener.
140
      * Currently we support the following
140
      * Currently we support the following
141
      * events:
141
      * events:
142
-     * incommingMessage - receives event notifications about incomming
142
+     * incomingMessage - receives event notifications about incoming
143
      * messages. The listener will receive object with the following structure:
143
      * messages. The listener will receive object with the following structure:
144
      * {{
144
      * {{
145
      *  "from": from,//JID of the user that sent the message
145
      *  "from": from,//JID of the user that sent the message
185
     /**
185
     /**
186
      * Adds event listeners to Meet Jitsi. Currently we support the following
186
      * Adds event listeners to Meet Jitsi. Currently we support the following
187
      * events:
187
      * events:
188
-     * incommingMessage - receives event notifications about incomming
188
+     * incomingMessage - receives event notifications about incoming
189
      * messages. The listener will receive object with the following structure:
189
      * messages. The listener will receive object with the following structure:
190
      * {{
190
      * {{
191
      *  "from": from,//JID of the user that sent the message
191
      *  "from": from,//JID of the user that sent the message

+ 2
- 2
muc.js View File

239
         if (txt) {
239
         if (txt) {
240
             console.log('chat', nick, txt);
240
             console.log('chat', nick, txt);
241
             Chat.updateChatConversation(from, nick, txt);
241
             Chat.updateChatConversation(from, nick, txt);
242
-            if(APIConnector.isEnabled() && APIConnector.isEventEnabled("incommingMessage"))
242
+            if(APIConnector.isEnabled() && APIConnector.isEventEnabled("incomingMessage"))
243
             {
243
             {
244
                 if(from != this.myroomjid)
244
                 if(from != this.myroomjid)
245
-                    APIConnector.triggerEvent("incommingMessage",
245
+                    APIConnector.triggerEvent("incomingMessage",
246
                         {"from": from, "nick": nick, "message": txt});
246
                         {"from": from, "nick": nick, "message": txt});
247
             }
247
             }
248
         }
248
         }

Loading…
Cancel
Save