MessageFunctions ConverterMessage::m_callbackNames[MESSAGING_MULTI_FUNTION_MAX]
{
- {"messagesAdded", "messagesUpdated", "messagesRemoved"},
- {"conversationsAdded", "conversationsUpdated", "conversationsRemoved"},
- {"foldersAdded", "foldersUpdated", "foldersRemoved"}
+ {"messagesadded", "messagesupdated", "messagesremoved"},
+ {"conversationsadded", "conversationsupdated", "conversationsremoved"},
+ {"foldersadded", "foldersupdated", "foldersremoved"}
};
ConverterMessage::ConverterMessage(JSContextRef context) :
if (Validator(m_context).isCallback(arg)) {
return arg;
- } else if (!JSValueIsNull(m_context,
- arg) && !JSValueIsUndefined(m_context, arg)) {
+ } else if (!JSValueIsNull(m_context, arg) ) {
ThrowMsg(ConversionException, "Not a function nor JS null.");
}
return NULL;
if (Validator(m_context).isCallback(arg)) {
return arg;
- } else if (JSValueIsNull(m_context,
- arg) || JSValueIsUndefined(m_context, arg)) {
+ } else if (JSValueIsNull(m_context,
+ arg) || JSValueIsUndefined(m_context, arg)) {
ThrowMsg(InvalidArgumentException, "JS null passed as function.");
}
ThrowMsg(ConversionException, "Not a function nor JS null.");