X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/JsonProvider.html diff --git a/docs/source/JsonProvider.html b/docs/source/JsonProvider.html index 768e487f..96e8b20d 100644 --- a/docs/source/JsonProvider.html +++ b/docs/source/JsonProvider.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.direct.JsonProvider
* @extends Ext.direct.Provider
@@ -10,18 +27,18 @@ and should not be instanced directly.
*/
Ext.define('Ext.direct.JsonProvider', {
-
+
/* Begin Definitions */
-
+
extend: 'Ext.direct.Provider',
-
+
alias: 'direct.jsonprovider',
-
+
uses: ['Ext.direct.ExceptionEvent'],
-
+
/* End Definitions */
-
- /**
+
+ /**
* Parse the JSON response
* @private
* @param {Object} response The XHR response object
@@ -37,11 +54,11 @@ Ext.define('Ext.direct.JsonProvider', {
return null;
},
- /**
+ /**
* Creates a set of events based on the XHR response
* @private
* @param {Object} response The XHR response
- * @return {Array} An array of Ext.direct.Event
+ * @return {Ext.direct.Event[]} An array of Ext.direct.Event
*/
createEvents: function(response){
var data = null,
@@ -49,7 +66,7 @@ Ext.define('Ext.direct.JsonProvider', {
event,
i = 0,
len;
-
+
try{
data = this.parseResponse(response);
} catch(e) {
@@ -61,7 +78,7 @@ Ext.define('Ext.direct.JsonProvider', {
});
return [event];
}
-
+
if (Ext.isArray(data)) {
for (len = data.length; i < len; ++i) {
events.push(this.createEvent(data[i]));
@@ -71,8 +88,8 @@ Ext.define('Ext.direct.JsonProvider', {
}
return events;
},
-
- /**
+
+ /**
* Create an event from a response object
* @param {Object} response The XHR response object
* @return {Ext.direct.Event} The event
@@ -80,4 +97,6 @@ Ext.define('Ext.direct.JsonProvider', {
createEvent: function(response){
return Ext.create('direct.' + response.type, response);
}
-});
\ No newline at end of file
+});
+
+