mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-29 12:39:28 +01:00
Don't override settings.method in Tomahawk.ajax. Not sure if settings.type is ever different than settings.method. But i kept both anyway, and left type with precedence.
This commit is contained in:
parent
a55e56d289
commit
f5f80fe465
@ -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