From d85c5001c45f6607ba7ad1ddb6dfa526f632c271 Mon Sep 17 00:00:00 2001 From: Yusuf Simonson Date: Mon, 5 May 2014 13:00:13 -0700 Subject: [PATCH] Removed unused function arguments --- mithril.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mithril.js b/mithril.js index e4894d11..5b45320e 100644 --- a/mithril.js +++ b/mithril.js @@ -194,7 +194,7 @@ Mithril = m = new function app(window) { window.document.replaceChild(html, window.document.documentElement) } }, - insertBefore: function(node, reference) { + insertBefore: function(node) { this.appendChild(node) }, childNodes: [] @@ -443,7 +443,7 @@ Mithril = m = new function app(window) { var deferred = m.deferred() var serialize = xhrOptions.serialize || JSON.stringify var deserialize = xhrOptions.deserialize || JSON.parse - var extract = xhrOptions.extract || function(xhr, xhrOptions) { + var extract = xhrOptions.extract || function(xhr) { return xhr.responseText.length === 0 && deserialize === JSON.parse ? null : xhr.responseText } xhrOptions.url = parameterizeUrl(xhrOptions.url, xhrOptions.data)