aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/document-bar.reel/document-bar.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/layout/document-bar.reel/document-bar.js')
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js
index 1f2deb59..4dc39fd6 100755
--- a/js/components/layout/document-bar.reel/document-bar.js
+++ b/js/components/layout/document-bar.reel/document-bar.js
@@ -13,7 +13,7 @@ exports.DocumentBar = Montage.create(Component, {
13 codeView: { value: null, enumerable: false}, 13 codeView: { value: null, enumerable: false},
14 zoomControl: { value: null, enumerable: false }, 14 zoomControl: { value: null, enumerable: false },
15 _type: { enumerable: false, value: null }, 15 _type: { enumerable: false, value: null },
16 disabled: {value: true}, 16 disabled: { value: true },
17 17
18 18
19 19
@@ -87,7 +87,7 @@ exports.DocumentBar = Montage.create(Component, {
87 87
88 prepareForDraw: { 88 prepareForDraw: {
89 value: function() { 89 value: function() {
90 this.eventManager.addEventListener( "onOpenDocument", this, false); 90 this.eventManager.addEventListener( "openDocument", this, false);
91 this.eventManager.addEventListener( "closeDocument", this, false); 91 this.eventManager.addEventListener( "closeDocument", this, false);
92 this.designView.addEventListener("click", this, false); 92 this.designView.addEventListener("click", this, false);
93 this.codeView.addEventListener("click", this, false); 93 this.codeView.addEventListener("click", this, false);
@@ -104,14 +104,14 @@ exports.DocumentBar = Montage.create(Component, {
104 } 104 }
105 }, 105 },
106 106
107 handleOnOpenDocument: { 107 handleOpenDocument: {
108 value: function(){ 108 value: function() {
109 this.disabled = false; 109 this.disabled = false;
110 } 110 }
111 }, 111 },
112 112
113 handleCloseDocument: { 113 handleCloseDocument: {
114 value: function(){ 114 value: function() {
115 if(!this.application.ninja.documentController.activeDocument) { 115 if(!this.application.ninja.documentController.activeDocument) {
116 this.disabled = true; 116 this.disabled = true;
117 } 117 }