aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 05fdccb2..1d9419c6 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -164,8 +164,13 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
164 164
165 /* === BEGIN: Draw cycle === */ 165 /* === BEGIN: Draw cycle === */
166 prepareForDraw:{ 166 prepareForDraw:{
167 value:function () { 167 value:function () {
168 this.eventManager.addEventListener( "onOpenDocument", this, false);
169 }
170 },
168 171
172 handleOnOpenDocument:{
173 value:function(){
169 this.eventManager.addEventListener("deleteLayerClick", this, false); 174 this.eventManager.addEventListener("deleteLayerClick", this, false);
170 this.eventManager.addEventListener("newLayer", this, false); 175 this.eventManager.addEventListener("newLayer", this, false);
171 this.eventManager.addEventListener("deleteLayer", this, false); 176 this.eventManager.addEventListener("deleteLayer", this, false);
@@ -179,9 +184,10 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
179 this.hashLayerNumber = this.createLayerNumberHash(); 184 this.hashLayerNumber = this.createLayerNumberHash();
180 this.hashElementMapToLayer = this.createElementMapToLayer(); 185 this.hashElementMapToLayer = this.createElementMapToLayer();
181 this.initTimelineView(); 186 this.initTimelineView();
187
188
182 } 189 }
183 }, 190 },
184
185 willDraw:{ 191 willDraw:{
186 value:function () { 192 value:function () {
187 if (this._isLayer) { 193 if (this._isLayer) {