aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-12 00:02:22 -0700
committerValerio Virgillito2012-06-12 00:02:22 -0700
commit844d59d85a1881525c79a1f44a35a9ea59e70e4a (patch)
tree46b58a5fda9d9baa93c79dbceeb494953f87fdd2 /js/panels/Timeline
parent1b510d86ebdd3cb58162e20cb9412e93d6f473c1 (diff)
downloadninja-844d59d85a1881525c79a1f44a35a9ea59e70e4a.tar.gz
removing the serializable from the timeline repetition and fixing the panels currentDocument binding
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 658ac043..36b868d0 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -221,8 +221,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
221 }, 221 },
222 set:function (newVal) { 222 set:function (newVal) {
223 this._layerRepetition = newVal; 223 this._layerRepetition = newVal;
224 }, 224 },
225 serializable: true
226 }, 225 },
227 226
228 // Set to false to skip array caching array sets in current document 227 // Set to false to skip array caching array sets in current document
@@ -346,8 +345,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
346 }, 345 },
347 set:function (newVal) { 346 set:function (newVal) {
348 this._trackRepetition = newVal; 347 this._trackRepetition = newVal;
349 }, 348 }
350 serializable: true
351 }, 349 },
352 350
353 _selectedKeyframes:{ 351 _selectedKeyframes:{
@@ -603,11 +601,13 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
603 // Store the timeline data in currentDocument... 601 // Store the timeline data in currentDocument...
604 if (this._boolCacheArrays) { 602 if (this._boolCacheArrays) {
605 // ... but only if we're supposed to. 603 // ... but only if we're supposed to.
606 this.application.ninja.currentDocument.tlArrLayers = this.arrLayers; 604 if(this.currentDocument) {
607 this.application.ninja.currentDocument.tlCurrentSelectedContainer = this.currentDocument.model.domContainer; 605 this.application.ninja.currentDocument.tlArrLayers = this.arrLayers;
608 this.application.ninja.currentDocument.tllayerNumber = this.currentLayerNumber; 606 this.application.ninja.currentDocument.tlCurrentSelectedContainer = this.currentDocument.model.domContainer;
609 this.application.ninja.currentDocument.tlCurrentLayerSelected = this.currentLayerSelected; 607 this.application.ninja.currentDocument.tllayerNumber = this.currentLayerNumber;
610 this.application.ninja.currentDocument.tlCurrentLayersSelected = this.currentLayersSelected; 608 this.application.ninja.currentDocument.tlCurrentLayerSelected = this.currentLayerSelected;
609 this.application.ninja.currentDocument.tlCurrentLayersSelected = this.currentLayersSelected;
610 }
611 } 611 }
612 } 612 }
613 }, 613 },