Allow server to return multiple messages in one response. Quite useful since you generate fewer requests and the implementation on server side is easier ...
Esse commit está contido em:
+7
-1
@@ -379,8 +379,14 @@ $.extend(AjaxIM.prototype, {
|
||||
this.actions.listen,
|
||||
{},
|
||||
function(response) {
|
||||
if(response)
|
||||
if($.isArray(response)) {
|
||||
$.each(response, function(key, value) {
|
||||
self._parseMessage(value);
|
||||
});
|
||||
}
|
||||
else if($.isPlainObject(response)) {
|
||||
self._parseMessage(response);
|
||||
}
|
||||
|
||||
setTimeout(function() { self.listen(); }, 0);
|
||||
},
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário