aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Reid2012-04-19 14:35:37 -0700
committerJon Reid2012-04-19 14:35:37 -0700
commit9ec3e457db069f5a6195c8c07f85fcb3a4e0c031 (patch)
tree22fa4aeb074d8b3d87b08675fd09207424ed4681
parent71e1e65d6aaa64afc9fffba9b1fd6d19904b52b0 (diff)
downloadninja-9ec3e457db069f5a6195c8c07f85fcb3a4e0c031.tar.gz
Timeline: Bug fix: check for uninitialized currentDocument in intialization
routine.
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 0b688139..a2f19b28 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -675,7 +675,9 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
675 675
676 handleBreadCrumbBinding:{ 676 handleBreadCrumbBinding:{
677 value:function(event){ 677 value:function(event){
678 678 if (this.application.ninja.currentDocument == null) {
679 return;
680 }
679 if((typeof(this.application.ninja.currentDocument.isTimelineInitialized) === "undefined")) 681 if((typeof(this.application.ninja.currentDocument.isTimelineInitialized) === "undefined"))
680 return; 682 return;
681 if(this.application.ninja.currentDocument.breadCrumbClick){ 683 if(this.application.ninja.currentDocument.breadCrumbClick){