Commit d9c0896b authored by Gero Müller's avatar Gero Müller
Browse files

fix polling socket

parent a83be335
......@@ -262,10 +262,10 @@ define(["jquery", "emitter"], function($, Emitter) {
self.readyState = Socket.states["CONNECTED"];
if (!$.isArray(response)) {
response = [response];
if (!$.isArray(response.data)) {
response.data = [response.data];
}
$.each(response, function(i, data) {
$.each(response.data, function(i, data) {
self.emit("message", {data: data});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment