Skip to content

Commit 0e6f846

Browse files
committed
Fixed cocos2d#2454 Fixed a bug that preloadTextFileData have a wrong cache
1 parent 05b55f0 commit 0e6f846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/platform/CCFileUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ cc.FileUtils = cc.Class.extend({
279279
xhr.onload = function (e) {
280280
if (xhr.responseText) {
281281
cc.Loader.getInstance().onResLoaded();
282-
selfPointer._fileDataCache[fileUrl] = xhr.responseText;
282+
selfPointer._textFileCache[fileUrl] = xhr.responseText;
283283
}
284284
};
285285
}

0 commit comments

Comments
 (0)