Skip to content

Instantly share code, notes, and snippets.

@attilaolah
Last active October 8, 2015 00:48
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 attilaolah/3251348 to your computer and use it in GitHub Desktop.
Save attilaolah/3251348 to your computer and use it in GitHub Desktop.
HTTP DELETE fix for Sencha Touch 2.1
Ext.define "MyApp.data.Connection",
override: "Ext.data.Connection"
setOptions: ->
options = @callParent arguments
if options.method is "DELETE"
options.data = null
options
Ext.override Ext.data.Connection,
setOptions: ->
options = @callOverridden arguments
if options.method is "DELETE"
options.data = null
options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment