aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
authorJonathan Duran2012-03-07 13:43:41 -0800
committerJonathan Duran2012-03-07 13:43:41 -0800
commitabdd0542bce89b6b22f0684d00b9cf24e5d0a5e6 (patch)
treeb4da4b3870d7fe41a4112d1036046a0fa2cf998f /js/panels/Timeline/TimelinePanel.reel
parent0856e0900d51e99d81800c7ee0e086f0235bc499 (diff)
downloadninja-abdd0542bce89b6b22f0684d00b9cf24e5d0a5e6.tar.gz
cleanup
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 42f68268..b12183f2 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -289,7 +289,6 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
289 // No, we have no information stored. Create it. 289 // No, we have no information stored. Create it.
290 this.application.ninja.currentDocument.isTimelineInitialized = true; 290 this.application.ninja.currentDocument.isTimelineInitialized = true;
291 this.application.ninja.currentDocument.tlArrLayers = []; 291 this.application.ninja.currentDocument.tlArrLayers = [];
292 this.application.ninja.currentDocument.tlArrTracks = [];
293 this.application.ninja.currentDocument.tllayerNumber = 0; 292 this.application.ninja.currentDocument.tllayerNumber = 0;
294 this.application.ninja.currentDocument.tlLayerHashTable=[]; 293 this.application.ninja.currentDocument.tlLayerHashTable=[];
295 this.hashKey = this.application.ninja.currentSelectedContainer.uuid; 294 this.hashKey = this.application.ninja.currentSelectedContainer.uuid;
@@ -570,6 +569,9 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
570 thingToPush.layerData.elementsList = []; 569 thingToPush.layerData.elementsList = [];
571 thingToPush.layerData.deleted = false; 570 thingToPush.layerData.deleted = false;
572 thingToPush.layerData.isSelected = false; 571 thingToPush.layerData.isSelected = false;
572
573 thingToPush.layerData.isActive = false;
574
573 thingToPush.layerData.created=false; 575 thingToPush.layerData.created=false;
574 thingToPush.layerData.isTrackAnimated = false; 576 thingToPush.layerData.isTrackAnimated = false;
575 thingToPush.layerData.currentKeyframeRule = null; 577 thingToPush.layerData.currentKeyframeRule = null;
@@ -642,6 +644,9 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
642 thingToPush.layerData.elementsList = []; 644 thingToPush.layerData.elementsList = [];
643 thingToPush.layerData.deleted = false; 645 thingToPush.layerData.deleted = false;
644 thingToPush.layerData.isSelected = false; 646 thingToPush.layerData.isSelected = false;
647
648 thingToPush.layerData.isActive = false;
649
645 thingToPush.layerData.created=false; 650 thingToPush.layerData.created=false;
646 thingToPush.layerData.isTrackAnimated = false; 651 thingToPush.layerData.isTrackAnimated = false;
647 thingToPush.layerData.currentKeyframeRule = null; 652 thingToPush.layerData.currentKeyframeRule = null;
@@ -1007,12 +1012,12 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1007 return returnVal; 1012 return returnVal;
1008 } 1013 }
1009 }, 1014 },
1015
1010 getActiveLayerIndex:{ 1016 getActiveLayerIndex:{
1011 value:function () { 1017 value:function () {
1012 var i = 0, 1018 var i = 0,
1013 returnVal = false, 1019 returnVal = false,
1014 arrLayersLength = this.arrLayers.length; 1020 arrLayersLength = this.arrLayers.length;
1015
1016 for (i = 0; i < arrLayersLength; i++) { 1021 for (i = 0; i < arrLayersLength; i++) {
1017 if (this.arrLayers[i].layerData.isActive === true) { 1022 if (this.arrLayers[i].layerData.isActive === true) {
1018 returnVal = i; 1023 returnVal = i;