1
0
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:
Dominik Schmidt 2015-03-04 21:23:38 +01:00
commit 63bb072f93

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