X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/src/data/JsonP.js diff --git a/src/data/JsonP.js b/src/data/JsonP.js index a73ee155..3355905a 100644 --- a/src/data/JsonP.js +++ b/src/data/JsonP.js @@ -59,6 +59,11 @@ Ext.define('Ext.data.JsonP', { * key value pairs that will be sent along with the request. *
  • timeout : Number (Optional)
    See {@link #timeout}
  • *
  • callbackKey : String (Optional)
    See {@link #callbackKey}
  • + *
  • callbackName : String (Optional)
    The function name to use for this request. + * By default this name will be auto-generated: Ext.data.JsonP.callback1, Ext.data.JsonP.callback2, etc. + * Setting this option to "my_name" will force the function name to be Ext.data.JsonP.my_name. + * Use this if you want deterministic behavior, but be careful - the callbackName should be different + * in each JsonP request that you make.
  • *
  • disableCaching : Boolean (Optional)
    See {@link #disableCaching}
  • *
  • disableCachingParam : String (Optional)
    See {@link #disableCachingParam}
  • *
  • success : Function (Optional)
    A function to execute if the request succeeds.
  • @@ -83,7 +88,7 @@ Ext.define('Ext.data.JsonP', { disableCaching = Ext.isDefined(options.disableCaching) ? options.disableCaching : me.disableCaching, cacheParam = options.disableCachingParam || me.disableCachingParam, id = ++me.statics().requestCount, - callbackName = 'callback' + id, + callbackName = options.callbackName || 'callback' + id, callbackKey = options.callbackKey || me.callbackKey, timeout = Ext.isDefined(options.timeout) ? options.timeout : me.timeout, params = Ext.apply({}, options.params),