diff --git a/frameworks/js-bindings/bindings/script/studio/parsers/timelineParser-2.x.js b/frameworks/js-bindings/bindings/script/studio/parsers/timelineParser-2.x.js index 09cbcd86fc..bd2f91c8fe 100644 --- a/frameworks/js-bindings/bindings/script/studio/parsers/timelineParser-2.x.js +++ b/frameworks/js-bindings/bindings/script/studio/parsers/timelineParser-2.x.js @@ -411,16 +411,13 @@ } } - - var bgStartColor = json["FirstColor"]; - var bgEndColor = json["EndColor"]; - if(bgStartColor != null && bgEndColor != null){ - var startC = getColor(bgStartColor); - if(bgEndColor["R"] == null && bgEndColor["G"] == null && bgEndColor["B"] == null) - widget.setBackGroundColor( startC ); - else - widget.setBackGroundColor( startC, getColor(bgEndColor) ); - } + + var firstColor = json["FirstColor"]; + var endColor = json["EndColor"]; + if(endColor["R"] != null && endColor["G"] != null && endColor["B"] != null) + widget.setBackGroundColor(getColor(firstColor), getColor(endColor)); + else + widget.setBackGroundColor(getColor(json["SingleColor"])); var colorVector = json["ColorVector"]; if(colorVector != null)