From ce5071c3e3b644436b112f64216b5a6b3c20cd2c Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Fri, 27 Aug 2021 02:21:58 +0300 Subject: [PATCH] Fix typo --- src/mibew/js/source/widget.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mibew/js/source/widget.js b/src/mibew/js/source/widget.js index 3e7d0c9c..89e8d2b3 100644 --- a/src/mibew/js/source/widget.js +++ b/src/mibew/js/source/widget.js @@ -428,7 +428,7 @@ var Mibew = Mibew || {}; * @private * @type Object */ - var invitaionEventsCallbacks = {}; + var invitationEventsCallbacks = {}; /** * Attaches event handler to invitation events. @@ -444,11 +444,11 @@ var Mibew = Mibew || {}; return; } - if (!invitaionEventsCallbacks.hasOwnProperty(event)) { - invitaionEventsCallbacks[event] = []; + if (!invitationEventsCallbacks.hasOwnProperty(event)) { + invitationEventsCallbacks[event] = []; } - invitaionEventsCallbacks[event].push(callback); + invitationEventsCallbacks[event].push(callback); }; /** @@ -463,14 +463,14 @@ var Mibew = Mibew || {}; data = {}; } - if (!invitaionEventsCallbacks.hasOwnProperty(event)) { + if (!invitationEventsCallbacks.hasOwnProperty(event)) { // There is no callback for the event. So there is no reasons to // continue. return; } // Run callbacks one by one - var callbacks = invitaionEventsCallbacks[event]; + var callbacks = invitationEventsCallbacks[event]; for(var i = 0, length = callbacks.length; i < length; i++) { callbacks[i](data); }