From 021f3d7703911811344125f048235789cbd65556 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Wed, 4 Apr 2012 11:31:58 -0700 Subject: Update timeline to work with new element removed event Signed-off-by: Jonathan Duran --- js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/panels/Timeline/TimelinePanel.reel') diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 10097805..d4f92b39 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js @@ -834,12 +834,12 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { handleElementAdded:{ value:function() { this.createNewLayer(); - this.currentLayerSelected.layerData.elementsList.push(this.application.ninja.selectedElements[0]._element); + this.currentLayerSelected.layerData.elementsList.push(this.application.ninja.selectedElements[0]); this.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = this.currentLayerSelected.layerData.layerName; } }, - handleElementDeleted:{ + handleElementsRemoved:{ value:function () { this.deleteLayer(); } -- cgit v1.2.3