Skip to content

Commit

Permalink
Remove getRes (parser)
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualSJ committed Jul 14, 2015
1 parent 365c51c commit a9deb6d
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@
var node,
self = this;
loadTexture(json["FileData"], resourcePath, function(path, type){
if(!cc.loader.getRes(path))
cc.log("%s need to be preloaded", path);
node = new cc.ParticleSystem(path);
self.generalAttributes(node, json);
node.setPositionType(cc.ParticleSystem.TYPE_GROUPED);
Expand Down Expand Up @@ -859,8 +857,6 @@
];
textureList.forEach(function(item){
loadTexture(json[item.name], resourcePath, function(path, type){
if(type === 0 && !loader.getRes(path))
cc.log("%s need to be preloaded", path);
item.handle.call(widget, path, type);
});
});
Expand Down Expand Up @@ -1025,8 +1021,6 @@
var startCharMap = json["StartChar"];

loadTexture(json["LabelAtlasFileImage_CNB"], resourcePath, function(path, type){
if(!cc.loader.getRes(path))
cc.log("%s need to be preloaded", path);
if(type === 0){
widget.setProperty(stringValue, path, itemWidth, itemHeight, startCharMap);
}
Expand All @@ -1051,8 +1045,6 @@
widget.setString(text);

loadTexture(json["LabelBMFontFile_CNB"], resourcePath, function(path, type){
if(!cc.loader.getRes(path))
cc.log("%s need to be pre loaded", path);
widget.setFntFile(path);
});
widget.ignoreContentAdaptWithSize(true);
Expand Down

0 comments on commit a9deb6d

Please sign in to comment.