diff options
author | Jonathan Duran | 2012-03-23 07:26:49 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-03-23 07:26:49 -0700 |
commit | 4bf42c311178d803012b506ec955ceaa5ef9547b (patch) | |
tree | b9872985467a8f31e3fbbef6b9f7347fa0a6254a /js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |
parent | 846d539997bf188b9caf63cdf0008367fe6c9ede (diff) | |
parent | 2d9cb9ca8f6beb661a3d904b5125afa8243661de (diff) | |
download | ninja-4bf42c311178d803012b506ec955ceaa5ef9547b.tar.gz |
Merge branch 'refs/heads/Timeline-local' into TimelineUber
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 601788ad..40af9af6 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -645,7 +645,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
645 | this.arrTransformTracks = [0, 1, 2, 3, 4]; | 645 | this.arrTransformTracks = [0, 1, 2, 3, 4]; |
646 | 646 | ||
647 | // Register event handler for layer events. | 647 | // Register event handler for layer events. |
648 | //defaultEventManager.addEventListener("layerEvent", this, false); | 648 | defaultEventManager.addEventListener("layerEvent", this, false); |
649 | 649 | ||
650 | } | 650 | } |
651 | }, | 651 | }, |
@@ -655,27 +655,11 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
655 | if (layerEvent.layerID !== this.trackID) { | 655 | if (layerEvent.layerID !== this.trackID) { |
656 | return; | 656 | return; |
657 | } | 657 | } |
658 | if (layerEvent.layerEventType === "labelClick") { | 658 | if (layerEvent.layerEventType === "newStyle") { |
659 | if (layerEvent.layerEventLocale === "content-main") { | 659 | // TODO: Add a real track of tweens. Probably need a method for that. |
660 | this._mainCollapser.bypassAnimation = layerEvent.bypassAnimation; | ||
661 | this._mainCollapser.toggle(); | ||
662 | } else if (layerEvent.layerEventLocale === "content-position") { | ||
663 | this._positionCollapser.bypassAnimation = layerEvent.bypassAnimation; | ||
664 | this._positionCollapser.handleCollapserLabelClick(); | ||
665 | } else if (layerEvent.layerEventLocale === "content-transform") { | ||
666 | this._transformCollapser.bypassAnimation = layerEvent.bypassAnimation; | ||
667 | this._transformCollapser.handleCollapserLabelClick(); | ||
668 | } else if (layerEvent.layerEventLocale === "content-style") { | ||
669 | this._styleCollapser.bypassAnimation = layerEvent.bypassAnimation; | ||
670 | this._styleCollapser.handleCollapserLabelClick(); | ||
671 | } | ||
672 | } else if (layerEvent.layerEventType === "newStyle") { | ||
673 | this.arrStyleTracks.push("1"); | 660 | this.arrStyleTracks.push("1"); |
674 | if (this._styleCollapser.isCollapsed === true) { | ||
675 | this._styleCollapser.bypassAnimation = layerEvent.bypassAnimation; | ||
676 | this._styleCollapser.handleCollapserLabelClick(); | ||
677 | } | ||
678 | } else if (layerEvent.layerEventType === "deleteStyle") { | 661 | } else if (layerEvent.layerEventType === "deleteStyle") { |
662 | // TODO: Delete the right track. Index can be passed in event object, use that for splice(). | ||
679 | this.arrStyleTracks.pop(); | 663 | this.arrStyleTracks.pop(); |
680 | } | 664 | } |
681 | } | 665 | } |