diff options
Diffstat (limited to 'js/components/layout/bread-crumb.reel/bread-crumb.js')
-rwxr-xr-x | js/components/layout/bread-crumb.reel/bread-crumb.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.js b/js/components/layout/bread-crumb.reel/bread-crumb.js index ea7238fc..c1b021a3 100755 --- a/js/components/layout/bread-crumb.reel/bread-crumb.js +++ b/js/components/layout/bread-crumb.reel/bread-crumb.js | |||
@@ -23,7 +23,7 @@ exports.Breadcrumb = Montage.create(Component, { | |||
23 | value: function(){ | 23 | value: function(){ |
24 | if(!this.application.ninja.documentController.activeDocument) { | 24 | if(!this.application.ninja.documentController.activeDocument) { |
25 | this.disabled = true; | 25 | this.disabled = true; |
26 | this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.documentRoot; | 26 | this.application.ninja.currentSelectedContainer = (this.application.ninja.currentDocument ? this.application.ninja.currentDocument.documentRoot : null); |
27 | } | 27 | } |
28 | } | 28 | } |
29 | }, | 29 | }, |
@@ -82,7 +82,6 @@ exports.Breadcrumb = Montage.create(Component, { | |||
82 | 82 | ||
83 | // This is always the top container which is now hardcoded to body | 83 | // This is always the top container which is now hardcoded to body |
84 | this.containerElements.unshift({"node": parentNode, "nodeUuid":parentNode.uuid, "label": parentNode.nodeName}); | 84 | this.containerElements.unshift({"node": parentNode, "nodeUuid":parentNode.uuid, "label": parentNode.nodeName}); |
85 | console.log("this works!"); | ||
86 | } | 85 | } |
87 | 86 | ||
88 | } | 87 | } |
@@ -90,8 +89,6 @@ exports.Breadcrumb = Montage.create(Component, { | |||
90 | 89 | ||
91 | handleAction: { | 90 | handleAction: { |
92 | value: function(evt) { | 91 | value: function(evt) { |
93 | |||
94 | // this.application.ninja.currentDocument.breadCrumbClick=true; | ||
95 | if(evt.target.value === this.container.uuid) { | 92 | if(evt.target.value === this.container.uuid) { |
96 | return; | 93 | return; |
97 | } | 94 | } |