Skip to content

Commit

Permalink
Update WebSocket.js
Browse files Browse the repository at this point in the history
Issue wilk#21
  • Loading branch information
telepenin authored and Richard van Dijk committed Sep 28, 2015
1 parent 3d150b9 commit c7846d3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions WebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -180,6 +173,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!');
Expand Down

0 comments on commit c7846d3

Please sign in to comment.