public
Last active

HTTP DELETE fix for Sencha Touch 2.1

  • Download Gist
ext-define.coffee
CoffeeScript
1 2 3 4 5 6 7 8
Ext.define "MyApp.data.Connection",
override: "Ext.data.Connection"
 
setOptions: ->
options = @callParent arguments
if options.method is "DELETE"
options.data = null
options
ext-override-deprecated.coffee
CoffeeScript
1 2 3 4 5 6 7
Ext.override Ext.data.Connection,
 
setOptions: ->
options = @callOverridden arguments
if options.method is "DELETE"
options.data = null
options

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.