Skip to content

Commit

Permalink
Update WebSocket.js
Browse files Browse the repository at this point in the history
  • Loading branch information
telepenin authored and richard-vd committed Sep 27, 2015
1 parent 9545e9b commit 9d4558c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down

0 comments on commit 9d4558c

Please sign in to comment.