Tiny code simplification.

This commit is contained in:
Jürg Lehni 2011-05-06 13:29:21 +01:00
parent 1e7fab2cbc
commit 8a4fe7eb42

View file

@ -171,7 +171,7 @@ var PaperScript = new function() {
var xhr = new (window.ActiveXObject || XMLHttpRequest)(
'Microsoft.XMLHTTP');
xhr.open('GET', url, true);
if ('overrideMimeType' in xhr) {
if (xhr.overrideMimeType) {
xhr.overrideMimeType('text/plain');
}
xhr.onreadystatechange = function() {