Skip to content

Commit 621e014

Browse files
committed
Merge pull request #1572 from VisualSJ/develop-parser
Fixed a bug that layoutComponent is undefinedFixed a bug that layoutComp...
2 parents 8cfd5c6 + 3f7b314 commit 621e014

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frameworks/js-bindings/bindings/script/studio/parsers/timelineParser-2.x.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@
293293
widget.setColor(getColor(color));
294294

295295
var layoutComponent = ccui.LayoutComponent.bindLayoutComponent(widget);
296+
if(!layoutComponent)
297+
return;
296298

297299
var positionXPercentEnabled = json["PositionPercentXEnable"] || false;
298300
var positionYPercentEnabled = json["PositionPercentYEnable"] || false;

0 commit comments

Comments
 (0)