X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fdata%2FMemoryProxy.js;h=457fc58e8432c49bcc3a56b25fa3ee87bc62eb3f;hp=d7aa5eef04307f38dc0c6f1c5dcd175c88a1c0bc;hb=cb9a8f5f7f553a7dfef00613388f37102123ccf6;hpb=5e4066fc6061c539aee75a748d21099f744f8e9a diff --git a/Roo/data/MemoryProxy.js b/Roo/data/MemoryProxy.js index d7aa5eef04..457fc58e84 100644 --- a/Roo/data/MemoryProxy.js +++ b/Roo/data/MemoryProxy.js @@ -14,10 +14,10 @@ * An implementation of Roo.data.DataProxy that simply passes the data specified in its constructor * to the Reader when its load method is called. * @constructor - * @cfg {Object} data The data object which the Reader uses to construct a block of Roo.data.Records. + * @param {Object} config A config object containing the objects needed for the Store to access data, */ Roo.data.MemoryProxy = function(data){ - if (data.data) { + if (typeof(data) != 'undefined' && typeof(data.data) != 'undefined') { data = data.data; } Roo.data.MemoryProxy.superclass.constructor.call(this); @@ -26,6 +26,9 @@ Roo.data.MemoryProxy = function(data){ Roo.extend(Roo.data.MemoryProxy, Roo.data.DataProxy, { + /** + * @cfg {Object} data The data object which the Reader uses to construct a block of Roo.data.Records. + */ /** * Load data from the requested source (in this case an in-memory * data object passed to the constructor), read the data object into