From 9d4558ca1f0e11100f926368d0af6e80ab77d52c Mon Sep 17 00:00:00 2001 From: Telepenin Nikolay Date: Mon, 8 Sep 2014 19:52:16 +0400 Subject: [PATCH] Update WebSocket.js For [Issue](https://github.com/wilk/Ext.ux.data.proxy.WebSocket/issues/21) --- WebSocket.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WebSocket.js b/WebSocket.js index 00ae269..d58b36d 100644 --- a/WebSocket.js +++ b/WebSocket.js @@ -195,6 +195,8 @@ Ext.define('Ext.ux.WebSocket', { constructor: function (cfg) { var me = this; + me.messageQueue = (cfg.messageQueue || []).slice(); + // Raises an error if no url is given if (Ext.isEmpty(cfg)) { Ext.Error.raise('URL for the websocket is required!');