Skip to content

Instantly share code, notes, and snippets.

@cmilfont
Created August 12, 2014 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmilfont/2275357648b1b31e86af to your computer and use it in GitHub Desktop.
Save cmilfont/2275357648b1b31e86af to your computer and use it in GitHub Desktop.
Ext.define("Ext.AjaxJson", {
extend: "Ext.data.Connection",
singleton: true,
createResponse : function(request) {
request = this.callParent(arguments);
request.responseJson = JSON.parse(request.responseText);
return request;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment