Removed unused function arguments

This commit is contained in:
Yusuf Simonson 2014-05-05 13:00:13 -07:00
parent dc379a4cf8
commit d85c5001c4

View file

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