diff options
author | Valerio Virgillito | 2012-05-23 15:35:15 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-23 15:35:15 -0700 |
commit | 0ca1910df1c78116139664bf39a95cf0ec7c8dc8 (patch) | |
tree | 34e09e1561a88b87f5c9dc35ffb3d8ab314f2b07 /js/panels/Timeline | |
parent | d5b36812ba84e49aa8b597eea9f75bf36ddcb571 (diff) | |
download | ninja-0ca1910df1c78116139664bf39a95cf0ec7c8dc8.tar.gz |
adding document views checks for the timeline and breadcrumb
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 80133edf..2c02e544 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -596,7 +596,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
596 | 596 | ||
597 | // That's all we need to do for a brand new file. | 597 | // That's all we need to do for a brand new file. |
598 | // But what if we're opening an existing document? | 598 | // But what if we're opening an existing document? |
599 | if (!this.application.ninja.documentController.creatingNewFile) { | 599 | if (!this.application.ninja.documentController.creatingNewFile && this.application.ninja.currentDocument.currentView !== "code") { |
600 | // Opening an existing document. If it has DOM elements we need to restore their timeline info | 600 | // Opening an existing document. If it has DOM elements we need to restore their timeline info |
601 | if (this.application.ninja.currentDocument.documentRoot.children[0]) { | 601 | if (this.application.ninja.currentDocument.documentRoot.children[0]) { |
602 | // Yes, it has DOM elements. Loop through them and create a new object for each. | 602 | // Yes, it has DOM elements. Loop through them and create a new object for each. |