X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fdata%2FMemoryProxy.js;h=457fc58e8432c49bcc3a56b25fa3ee87bc62eb3f;hp=ac626fb9d44c7ff69810fe03103d2fa94dfe35b6;hb=3ceb008849553fc9d0235f889c190a73330ea822;hpb=5e20d2d4c06f3b903975ec0a90550d5d9cca8779 diff --git a/Roo/data/MemoryProxy.js b/Roo/data/MemoryProxy.js index ac626fb9d4..457fc58e84 100644 --- a/Roo/data/MemoryProxy.js +++ b/Roo/data/MemoryProxy.js @@ -10,13 +10,14 @@ */ /** * @class Roo.data.MemoryProxy + * @extends Roo.data.DataProxy * 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 - * @param {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); @@ -25,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