Merge pull request #121 from syk0saje/patch-1

always use XMLHttpRequest
This commit is contained in:
Leo Horie 2014-06-14 00:09:22 -04:00
commit 37a673413f

View file

@ -471,7 +471,7 @@ Mithril = m = new function app(window) {
function identity(value) {return value}
function ajax(options) {
var xhr = window.XDomainRequest ? new window.XDomainRequest : new window.XMLHttpRequest
var xhr = new window.XMLHttpRequest
xhr.open(options.method, options.url, true, options.user, options.password)
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {