1
0
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:
Will Stott 2015-03-04 20:12:19 +00:00
parent a55e56d289
commit f5f80fe465

View File

@ -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) {