From f5f80fe465edb1a40908525125c7395a3adebe30 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Wed, 4 Mar 2015 20:12:19 +0000 Subject: [PATCH] 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. --- data/js/tomahawk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index 0566272eb..6937729f7 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -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) {