File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{
173
173
* @param {String } filePath
174
174
*/
175
175
preloadPlist : function ( filePath ) {
176
- filePath = cc . FileUtils . getInstance ( ) . fullPathForFilename ( filePath ) ;
176
+ var filePath2 = cc . FileUtils . getInstance ( ) . fullPathForFilename ( filePath ) ;
177
177
178
178
if ( window . XMLHttpRequest ) {
179
179
var xmlhttp = new XMLHttpRequest ( ) ;
@@ -187,7 +187,7 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{
187
187
if ( xmlhttp . readyState == 4 ) {
188
188
if ( xmlhttp . responseText ) {
189
189
cc . Loader . getInstance ( ) . onResLoaded ( ) ;
190
- that . _xmlDict [ filePath ] = xmlhttp . responseText ;
190
+ that . _xmlDict [ filePath2 ] = xmlhttp . responseText ;
191
191
xmlhttp = null ;
192
192
} else {
193
193
cc . Loader . getInstance ( ) . onResLoaded ( ) ;
@@ -196,7 +196,7 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{
196
196
}
197
197
} ;
198
198
// load xml
199
- xmlhttp . open ( "GET" , filePath , true ) ;
199
+ xmlhttp . open ( "GET" , filePath2 , true ) ;
200
200
xmlhttp . send ( null ) ;
201
201
} else
202
202
throw "cocos2d:Your browser does not support XMLHTTP." ;
You can’t perform that action at this time.
0 commit comments