From a5e337c220808eb49cf08e61b7102cf87241518c Mon Sep 17 00:00:00 2001 From: Telepenin Nikolay Date: Mon, 8 Sep 2014 19:49:54 +0400 Subject: [PATCH] Update WebSocket.js Issue #21 --- WebSocket.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/WebSocket.js b/WebSocket.js index 71920dd..5e01c66 100644 --- a/WebSocket.js +++ b/WebSocket.js @@ -58,13 +58,6 @@ Ext.define('Ext.ux.data.proxy.WebSocket', { requires: ['Ext.ux.WebSocket'], - /** - * @property {Object} callbacks - * @private - * Callbacks stack - */ - callbacks: {}, - config: { /** * @cfg {String} storeId (required) Id of the store associated @@ -259,6 +252,8 @@ Ext.define('Ext.ux.data.proxy.WebSocket', { constructor: function (cfg) { var me = this; + me.callbacks = Ext.apply(cfg.callbacks || {}, {}); + // Requires a configuration if (Ext.isEmpty(cfg)) { Ext.Error.raise('A configuration is needed!');