X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_data_MemoryProxy.js.html;h=436738aecd20a66a50b099e06ab0dae8d954a98b;hb=bb4f20285cb0ce281099e1db5cb76e60175de50f;hp=fe7a5ea20f2b5d8bd2a3cea8e364682ef122dea5;hpb=9ff8ded6bbbd258ecd646184ba26020874e2c085;p=roojs1 diff --git a/docs/src/Roo_data_MemoryProxy.js.html b/docs/src/Roo_data_MemoryProxy.js.html index fe7a5ea20f..436738aecd 100644 --- a/docs/src/Roo_data_MemoryProxy.js.html +++ b/docs/src/Roo_data_MemoryProxy.js.html @@ -1,4 +1,4 @@ -
/*
+Roo/data/MemoryProxy.js /*
* Based on:
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
@@ -10,14 +10,16 @@
*/
/**
* @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) {
- data = data.data;
+Roo.data.MemoryProxy = function(config){
+ var data = config;
+ if (typeof(config) != 'undefined' && typeof(config.data) != 'undefined') {
+ data = config.data;
}
Roo.data.MemoryProxy.superclass.constructor.call(this);
this.data = data;
@@ -26,6 +28,9 @@
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
* a block of Roo.data.Records using the passed Roo.data.DataReader implementation, and