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