diff options
Diffstat (limited to 'js/components/layout/document-bar.reel')
-rwxr-xr-x | js/components/layout/document-bar.reel/document-bar.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js index 6a7b0f3f..90d3a207 100755 --- a/js/components/layout/document-bar.reel/document-bar.js +++ b/js/components/layout/document-bar.reel/document-bar.js | |||
@@ -105,7 +105,6 @@ exports.DocumentBar = Montage.create(Component, { | |||
105 | 105 | ||
106 | prepareForDraw: { | 106 | prepareForDraw: { |
107 | value: function() { | 107 | value: function() { |
108 | this.eventManager.addEventListener( "closeDocument", this, false); | ||
109 | this.designView.addEventListener("click", this, false); | 108 | this.designView.addEventListener("click", this, false); |
110 | this.codeView.addEventListener("click", this, false); | 109 | this.codeView.addEventListener("click", this, false); |
111 | 110 | ||
@@ -135,19 +134,5 @@ exports.DocumentBar = Montage.create(Component, { | |||
135 | this.currentView = event._event.target.id; | 134 | this.currentView = event._event.target.id; |
136 | this.application.ninja.documentController.stage.stageView.switchDesignDocViews(event._event.target.id);//switch between design view | 135 | this.application.ninja.documentController.stage.stageView.switchDesignDocViews(event._event.target.id);//switch between design view |
137 | } | 136 | } |
138 | }, | ||
139 | |||
140 | handleCloseDocument: { | ||
141 | value: function() { | ||
142 | if(!this.application.ninja.documentController.activeDocument) { | ||
143 | this.disabled = true; | ||
144 | } | ||
145 | } | ||
146 | }, | ||
147 | |||
148 | handleOnDocumentChanged:{ | ||
149 | value:function(event){ | ||
150 | |||
151 | } | ||
152 | } | 137 | } |
153 | }); | 138 | }); |