mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Merge pull request #290 from willstott101/tomahawk-js
Don't override settings.method in Tomahawk.ajax.
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