Kaynağa Gözat

fixed typo

j8
Nicholas Wittstruck 10 yıl önce
ebeveyn
işleme
a6277b810e
4 değiştirilmiş dosya ile 11 ekleme ve 11 silme
  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 Dosyayı Görüntüle

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

+ 5
- 5
doc/api.md Dosyayı Görüntüle

@@ -91,7 +91,7 @@ with data related to the event.
91 91
 
92 92
 Currently we support the following events:
93 93
 
94
-* **incommingMessage** - event notifications about incomming
94
+* **incomingMessage** - event notifications about incoming
95 95
 messages. The listener will receive object with the following structure:
96 96
 ```
97 97
 {
@@ -135,7 +135,7 @@ This method requires one argument of type Object. The object argument must
135 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,19 +146,19 @@ function outgoingMessageListener(object)
146 146
 }
147 147
 
148 148
 api.addEventListeners({
149
-    incommingMessage: incommingMessageListener,
149
+    incomingMessage: incomingMessageListener,
150 150
     outgoingMessage: outgoingMessageListener})
151 151
 ```
152 152
 
153 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 158
 If you want to remove more than one event you can use ```removeEventListeners``` method with argument
159 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 164
 You can remove the embedded Jitsi Meet Conference with the following code:

+ 2
- 2
external_api.js Dosyayı Görüntüle

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

+ 2
- 2
muc.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet