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 , selector , target ) {
176
- filePath = cc . FileUtils . getInstance ( ) . fullPathForFilename ( filePath ) ;
176
+ var fullfilePath = cc . FileUtils . getInstance ( ) . fullPathForFilename ( filePath ) ;
177
177
178
178
if ( window . XMLHttpRequest ) {
179
179
var xmlhttp = new XMLHttpRequest ( ) ;
@@ -187,15 +187,15 @@ cc.SAXParser = cc.Class.extend(/** @lends cc.SAXParser# */{
187
187
if ( xmlhttp . readyState == 4 ) {
188
188
if ( xmlhttp . responseText ) {
189
189
cc . doCallback ( selector , target ) ;
190
- that . _xmlDict [ filePath ] = xmlhttp . responseText ;
190
+ that . _xmlDict [ fullfilePath ] = xmlhttp . responseText ;
191
191
xmlhttp = null ;
192
192
} else {
193
193
cc . doCallback ( selector , target , filePath ) ;
194
194
}
195
195
}
196
196
} ;
197
197
// load xml
198
- xmlhttp . open ( "GET" , filePath , true ) ;
198
+ xmlhttp . open ( "GET" , fullfilePath , true ) ;
199
199
xmlhttp . send ( null ) ;
200
200
} else
201
201
throw "cocos2d:Your browser does not support XMLHTTP." ;
You can’t perform that action at this time.
0 commit comments