diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 0feada6b..912dce83 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -273,6 +273,14 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
273 | this.eventManager.removeEventListener("elementDeleted", this, false); | 273 | this.eventManager.removeEventListener("elementDeleted", this, false); |
274 | this.eventManager.removeEventListener("deleteSelection", this, false); | 274 | this.eventManager.removeEventListener("deleteSelection", this, false); |
275 | this.eventManager.removeEventListener("selectionChange", this, true); | 275 | this.eventManager.removeEventListener("selectionChange", this, true); |
276 | |||
277 | // Remove every event listener for every tween in TimelineTrack | ||
278 | for (var i = 0; i < this.arrTracks.length; i++) { | ||
279 | for (var j = 0; j < this.arrTracks[i].tweens.length; j++) { | ||
280 | //this.eventManager.removeEventListener("elementChange", this, false); | ||
281 | this.arrTracks[i].tweens[j].eventManager.removeEventListener("elementChange", this.arrTracks[i].tweens[j], false); | ||
282 | } | ||
283 | } | ||
276 | 284 | ||
277 | // Reset visual appearance | 285 | // Reset visual appearance |
278 | this.application.ninja.timeline.playhead.style.left = "-2px"; | 286 | this.application.ninja.timeline.playhead.style.left = "-2px"; |