aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Layer.reel/Layer.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Layer.reel/Layer.js')
-rw-r--r--js/panels/Timeline/Layer.reel/Layer.js21
1 files changed, 18 insertions, 3 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index 4941ff79..0abd97be 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -710,7 +710,15 @@ var Layer = exports.Layer = Montage.create(Component, {
710 // Set up the event info and dispatch the event 710 // Set up the event info and dispatch the event
711 this.styleCounter += 1; 711 this.styleCounter += 1;
712 // newEvent.styleSelection = mySelection; 712 // newEvent.styleSelection = mySelection;
713 defaultEventManager.dispatchEvent(newEvent); 713 //defaultEventManager.dispatchEvent(newEvent);
714
715 // Dispatch the event to the TimelineTrack component associated with this Layer.
716 var myIndex = this.application.ninja.timeline.getActiveLayerIndex(),
717 arrTracks = document.querySelectorAll('[data-montage-id="track"]');
718
719 if (myIndex !== false) {
720 arrTracks[myIndex].dispatchEvent(newEvent);
721 }
714 } 722 }
715 }, 723 },
716 724
@@ -728,8 +736,15 @@ var Layer = exports.Layer = Montage.create(Component, {
728 newEvent.layerID = this.layerID; 736 newEvent.layerID = this.layerID;
729 newEvent.styleID = this.selectedStyleIndex; 737 newEvent.styleID = this.selectedStyleIndex;
730 newEvent.selectedStyleIndex = this.selectedStyleIndex; 738 newEvent.selectedStyleIndex = this.selectedStyleIndex;
731 defaultEventManager.dispatchEvent(newEvent); 739
732 740 // Dispatch the event to the TimelineTrack component associated with this Layer.
741 var myIndex = this.application.ninja.timeline.getActiveLayerIndex(),
742 arrTracks = document.querySelectorAll('[data-montage-id="track"]');
743
744 if (myIndex !== false) {
745 arrTracks[myIndex].dispatchEvent(newEvent);
746 }
747
733 // Delete the style from the view 748 // Delete the style from the view
734 this.arrLayerStyles.splice(this.selectedStyleIndex, 1); 749 this.arrLayerStyles.splice(this.selectedStyleIndex, 1);
735 750