mirror of https://github.com/axmolengine/axmol.git
Update JS parser
This commit is contained in:
parent
559305646b
commit
c52a81a2c2
|
@ -260,6 +260,15 @@
|
|||
|
||||
return frame;
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "BlendFunc",
|
||||
handle: function(options){
|
||||
var frame = new ccs.BlendFuncFrame();
|
||||
var blendFunc = options["BlendFunc"];
|
||||
if(blendFunc)
|
||||
frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"]));
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -41,10 +41,11 @@
|
|||
},
|
||||
|
||||
getNodeJson: function(json){
|
||||
var result = json["Content"]["Content"]["ObjectData"];
|
||||
if(undefined === result)
|
||||
result = json["Content"]["ObjectData"];
|
||||
return result;
|
||||
var content = json["Content"];
|
||||
if(content["ObjectData"])
|
||||
return content["ObjectData"];
|
||||
|
||||
return content["Content"]["ObjectData"];
|
||||
},
|
||||
|
||||
getClass: function(json){
|
||||
|
|
Loading…
Reference in New Issue