mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02: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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user