Skip to content

Commit 2fce532

Browse files
author
Jose Antonio Andújar Clavell
committed
issue cocos2d#1565 bug in CCSAXParser.js
1 parent a18882a commit 2fce532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cocos2d/core/platform/CCSAXParser.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{
173173
* @param {String} filePath
174174
*/
175175
preloadPlist: function (filePath) {
176-
filePath = cc.FileUtils.getInstance().fullPathForFilename(filePath);
176+
var filePath2 = cc.FileUtils.getInstance().fullPathForFilename(filePath);
177177

178178
if (window.XMLHttpRequest) {
179179
var xmlhttp = new XMLHttpRequest();
@@ -187,7 +187,7 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{
187187
if (xmlhttp.readyState == 4) {
188188
if (xmlhttp.responseText) {
189189
cc.Loader.getInstance().onResLoaded();
190-
that._xmlDict[filePath] = xmlhttp.responseText;
190+
that._xmlDict[filePath2] = xmlhttp.responseText;
191191
xmlhttp = null;
192192
} else {
193193
cc.Loader.getInstance().onResLoaded();
@@ -196,7 +196,7 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{
196196
}
197197
};
198198
// load xml
199-
xmlhttp.open("GET", filePath, true);
199+
xmlhttp.open("GET", filePath2, true);
200200
xmlhttp.send(null);
201201
} else
202202
throw "cocos2d:Your browser does not support XMLHTTP.";

0 commit comments

Comments
 (0)