mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +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.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
settings.type = settings.type || settings.method || 'get';
|
||||||
settings.method = settings.type;
|
settings.method = settings.type;
|
||||||
settings.type = settings.type || 'get';
|
|
||||||
|
|
||||||
if (settings.data) {
|
if (settings.data) {
|
||||||
var formEncode = function(obj) {
|
var formEncode = function(obj) {
|
||||||
|
Reference in New Issue
Block a user