We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7edcc89 + 8f3efcd commit 763fe68Copy full SHA for 763fe68
extensions/cocostudio/loader/load.js
@@ -140,8 +140,8 @@ ccs._parser = cc.Class.extend({
140
return json["widgetTree"];
141
},
142
143
- parse: function(file, json){
144
- var resourcePath = this._dirname(file);
+ parse: function(file, json, resourcePath){
+ resourcePath = resourcePath || this._dirname(file);
145
this.pretreatment(json, resourcePath);
146
var node = this.parseNode(this.getNodeJson(json), resourcePath, file);
147
node && this.deferred(json, resourcePath, node, file);
0 commit comments