X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-ui-debug.js;h=9ad7d68e98eae4e3ebbc77221cb9ae137552984b;hp=56f1c641a2dc9bf8d2577eac5c9fb80db611f10d;hb=fca4852c957f6aebf0af1675fd518713f4739fe5;hpb=cb9a8f5f7f553a7dfef00613388f37102123ccf6 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 56f1c641a2..9ad7d68e98 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -1398,10 +1398,10 @@ Roo.extend(Roo.data.DataProxy, Roo.util.Observable); * 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); @@ -1410,6 +1410,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