Merge pull request #121 from syk0saje/patch-1
always use XMLHttpRequest
This commit is contained in:
commit
37a673413f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue