Skip to content

Commit 7bf7be0

Browse files
committed
Fixed delete rootDict
1 parent 2422cab commit 7bf7be0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cocos2d/platform/CCFileUtils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,7 @@ cc.FileUtils = cc.Class.extend({
584584
* @return {object} The Dictionary of object generated from the file
585585
*/
586586
createDictionaryWithContentsOfFile: function(filename){
587-
var parser = cc.SAXParser.getInstance();
588-
this.rootDict = parser.parse(filename);
589-
return this.rootDict;
587+
return cc.SAXParser.getInstance().parse(filename);
590588
},
591589

592590
/**

0 commit comments

Comments
 (0)