aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/bread-crumb.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/layout/bread-crumb.reel')
-rwxr-xr-xjs/components/layout/bread-crumb.reel/bread-crumb.js16
1 files changed, 3 insertions, 13 deletions
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.js b/js/components/layout/bread-crumb.reel/bread-crumb.js
index 74e89ac1..ac131f2c 100755
--- a/js/components/layout/bread-crumb.reel/bread-crumb.js
+++ b/js/components/layout/bread-crumb.reel/bread-crumb.js
@@ -26,12 +26,12 @@ exports.Breadcrumb = Montage.create(Component, {
26 26
27 this._currentDocument = value; 27 this._currentDocument = value;
28 28
29 if(!this._currentDocument) { 29 if(!value) {
30 this.disabled = true; 30 this.disabled = true;
31 } else {
32 this.disabled = this._currentDocument.currentView !== "design";
31 } 33 }
32 34
33 this.disabled = this._currentDocument.currentView !== "design";
34
35 } 35 }
36 }, 36 },
37 37
@@ -51,15 +51,6 @@ exports.Breadcrumb = Montage.create(Component, {
51 } 51 }
52 }, 52 },
53 53
54 handleCloseDocument: {
55 value: function(){
56 if(!this.application.ninja.documentController.activeDocument && this.application.ninja.currentDocument.currentView !== "code") {
57 this.disabled = true;
58 this.application.ninja.currentSelectedContainer = (this.application.ninja.currentDocument ? this.application.ninja.currentDocument.model.documentRoot : null);
59 }
60 }
61 },
62
63 _container:{ 54 _container:{
64 value:null 55 value:null
65 }, 56 },
@@ -82,7 +73,6 @@ exports.Breadcrumb = Montage.create(Component, {
82 73
83 prepareForDraw: { 74 prepareForDraw: {
84 value: function() { 75 value: function() {
85 this.eventManager.addEventListener("closeDocument", this, false);
86 this.breadcrumbBt.addEventListener("action", this, false); 76 this.breadcrumbBt.addEventListener("action", this, false);
87 } 77 }
88 }, 78 },