aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
authorJon Reid2012-02-27 20:26:49 -0800
committerJon Reid2012-02-27 20:26:49 -0800
commit445180591da04f681a22038600e8ab517b82c0ca (patch)
treec621c195eacfb05158b871c6fe7ab6a140a09fad /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
parent8f3fba1d9febcbb16f1465196f339ff04bf15077 (diff)
downloadninja-445180591da04f681a22038600e8ab517b82c0ca.tar.gz
Timeline: try to clean up bogus events manually.
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js8
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";