aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/document-bar.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-30 01:33:20 -0700
committerValerio Virgillito2012-05-30 01:33:20 -0700
commit31b094ee21102f99a4021d505bc3a28527c9e23d (patch)
treea9525ea312f8cc0d25ab6410394f01e974b69068 /js/components/layout/document-bar.reel
parentd8840eda0d3b3e31fb5a72306fe66608f4f99c2b (diff)
downloadninja-31b094ee21102f99a4021d505bc3a28527c9e23d.tar.gz
Fixing the close document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components/layout/document-bar.reel')
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.js15
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});