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!');