Skip to content

Commit

Permalink
browser: quit caring old IEs
Browse files Browse the repository at this point in the history
  • Loading branch information
satyr committed Jun 18, 2012
1 parent 55392e3 commit 681781c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extras/coco.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/browser.js
Expand Up @@ -12,7 +12,7 @@ Coco.stab = function(code, callback, filename, error){
Coco.load = function(url, callback){
var xhr;
callback || (callback = function(){});
xhr = new (self.ActiveXObject || XMLHttpRequest)('Microsoft.XMLHTTP');
xhr = new XMLHttpRequest;
xhr.open('GET', url, true);
if ('overrideMimeType' in xhr) {
xhr.overrideMimeType('text/plain');
Expand Down
2 changes: 1 addition & 1 deletion src/browser.co
Expand Up @@ -5,7 +5,7 @@ Coco.stab = (code, callback, filename, error) ->

# `.stab`s a remote script via `XMLHttpRequest`.
Coco.load = (url, callback or ->) ->
xhr = new (self.ActiveXObject or XMLHttpRequest) \Microsoft.XMLHTTP
xhr = new XMLHttpRequest
xhr.open \GET, url, true
xhr.overrideMimeType \text/plain if \overrideMimeType in xhr
xhr.onreadystatechange = !->
Expand Down

0 comments on commit 681781c

Please sign in to comment.