diff options
author | Jonathan Duran | 2012-02-23 11:04:51 -0800 |
---|---|---|
committer | Jonathan Duran | 2012-02-23 11:04:51 -0800 |
commit | 7b6f27edb718d381ccec6089a8039ffa0dcb80a2 (patch) | |
tree | ff14550c3292227c9c859e3b8fcd38515366c01e | |
parent | cf671b4855ecca0278128e82459691292a3d3dc9 (diff) | |
download | ninja-7b6f27edb718d381ccec6089a8039ffa0dcb80a2.tar.gz |
Timeline:Open Doc in TimelinePanel.js
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Signed-off-by: Jonathan Duran <jduran@motorola.com>
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 10 |
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) { |