diff --git a/package.json b/package.json index b51fdb8..91a9a01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seajs-text", - "version": "1.1.0", + "version": "1.1.1", "description": "A Sea.js plugin for loading text resources such as template, json etc", "keywords": ["seajs", "plugin", "text"], "author": "Frank Wang ", diff --git a/src/seajs-text.js b/src/seajs-text.js index 91f9e13..5293108 100644 --- a/src/seajs-text.js +++ b/src/seajs-text.js @@ -122,9 +122,9 @@ function getPluginName(ext) { } function xhr(url, callback) { - var r = global.ActiveXObject ? - new global.ActiveXObject("Microsoft.XMLHTTP") : - new global.XMLHttpRequest() + var r = global.XMLHttpRequest ? + new global.XMLHttpRequest() : + new global.ActiveXObject("Microsoft.XMLHTTP") r.open("GET", url, true)