Last active
October 8, 2015 00:48
-
-
Save attilaolah/3251348 to your computer and use it in GitHub Desktop.
HTTP DELETE fix for Sencha Touch 2.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define "MyApp.data.Connection", | |
override: "Ext.data.Connection" | |
setOptions: -> | |
options = @callParent arguments | |
if options.method is "DELETE" | |
options.data = null | |
options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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