mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Merge pull request #290 from willstott101/tomahawk-js
Don't override settings.method in Tomahawk.ajax.
This commit is contained in:
commit
63bb072f93
@ -492,8 +492,8 @@ Tomahawk.ajax = function(url, settings) {
|
||||
settings.url = url;
|
||||
}
|
||||
|
||||
settings.type = settings.type || settings.method || 'get';
|
||||
settings.method = settings.type;
|
||||
settings.type = settings.type || 'get';
|
||||
|
||||
if (settings.data) {
|
||||
var formEncode = function(obj) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user