mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
Fix typo
This commit is contained in:
parent
b6a70659b1
commit
ce5071c3e3
@ -428,7 +428,7 @@ var Mibew = Mibew || {};
|
|||||||
* @private
|
* @private
|
||||||
* @type Object
|
* @type Object
|
||||||
*/
|
*/
|
||||||
var invitaionEventsCallbacks = {};
|
var invitationEventsCallbacks = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attaches event handler to invitation events.
|
* Attaches event handler to invitation events.
|
||||||
@ -444,11 +444,11 @@ var Mibew = Mibew || {};
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!invitaionEventsCallbacks.hasOwnProperty(event)) {
|
if (!invitationEventsCallbacks.hasOwnProperty(event)) {
|
||||||
invitaionEventsCallbacks[event] = [];
|
invitationEventsCallbacks[event] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
invitaionEventsCallbacks[event].push(callback);
|
invitationEventsCallbacks[event].push(callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -463,14 +463,14 @@ var Mibew = Mibew || {};
|
|||||||
data = {};
|
data = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!invitaionEventsCallbacks.hasOwnProperty(event)) {
|
if (!invitationEventsCallbacks.hasOwnProperty(event)) {
|
||||||
// There is no callback for the event. So there is no reasons to
|
// There is no callback for the event. So there is no reasons to
|
||||||
// continue.
|
// continue.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run callbacks one by one
|
// Run callbacks one by one
|
||||||
var callbacks = invitaionEventsCallbacks[event];
|
var callbacks = invitationEventsCallbacks[event];
|
||||||
for(var i = 0, length = callbacks.length; i < length; i++) {
|
for(var i = 0, length = callbacks.length; i < length; i++) {
|
||||||
callbacks[i](data);
|
callbacks[i](data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user