From 86133e93b19cffbb6487759ee5e763849704b463 Mon Sep 17 00:00:00 2001 From: Kruti Shah Date: Tue, 12 Jun 2012 15:47:31 -0700 Subject: Fix the broken animation Signed-off-by: Kruti Shah --- js/panels/Timeline/Layer.reel/Layer.js | 170 +++++++++++++++++---------------- 1 file changed, 86 insertions(+), 84 deletions(-) (limited to 'js/panels/Timeline') diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js index 4773489c..aa900b0c 100644 --- a/js/panels/Timeline/Layer.reel/Layer.js +++ b/js/panels/Timeline/Layer.reel/Layer.js @@ -1056,109 +1056,111 @@ var Layer = exports.Layer = Montage.create(Component, { handleElementChange:{ value:function(event){ - var el =this.layerData.stageElement; - var length = this.arrLayerStyles.length , i , k=0; + if(this.layerData){ + var el =this.layerData.stageElement; + var length = this.arrLayerStyles.length , i , k=0; - this.dtextPositionX = parseFloat(ElementsMediator.getProperty(el, "left")); - this.dtextPositionY = parseFloat(ElementsMediator.getProperty(el, "top")); - this.dtextScaleY = parseFloat(ElementsMediator.getProperty(el, "height")); - this.dtextScaleX= parseFloat(ElementsMediator.getProperty(el, "width")); + this.dtextPositionX = parseFloat(ElementsMediator.getProperty(el, "left")); + this.dtextPositionY = parseFloat(ElementsMediator.getProperty(el, "top")); + this.dtextScaleY = parseFloat(ElementsMediator.getProperty(el, "height")); + this.dtextScaleX= parseFloat(ElementsMediator.getProperty(el, "width")); - for(i=0; i